forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
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);