forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 244b2c5ca8b14627e4a17755e5922221e121c771
kernel/arch/mips/bcm63xx/clk.c
....@@ -361,6 +361,8 @@
361361 */
362362 int clk_enable(struct clk *clk)
363363 {
364
+ if (!clk)
365
+ return 0;
364366 mutex_lock(&clocks_mutex);
365367 clk_enable_unlocked(clk);
366368 mutex_unlock(&clocks_mutex);