forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/mips/lantiq/xway/gptu.c
....@@ -1,7 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
2
- * This program is free software; you can redistribute it and/or modify it
3
- * under the terms of the GNU General Public License version 2 as published
4
- * by the Free Software Foundation.
53 *
64 * Copyright (C) 2012 John Crispin <john@phrozen.org>
75 * Copyright (C) 2012 Lantiq GmbH
....@@ -124,6 +122,8 @@
124122 {
125123 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL);
126124
125
+ if (!clk)
126
+ return;
127127 clk->cl.dev_id = dev_name(dev);
128128 clk->cl.con_id = con;
129129 clk->cl.clk = clk;