aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-w90x900/clock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-w90x900/clock.c b/arch/arm/mach-w90x900/clock.c
index 2c371ff22e51..ac6fd1a2cb59 100644
--- a/arch/arm/mach-w90x900/clock.c
+++ b/arch/arm/mach-w90x900/clock.c
@@ -46,6 +46,9 @@ void clk_disable(struct clk *clk)
46{ 46{
47 unsigned long flags; 47 unsigned long flags;
48 48
49 if (!clk)
50 return;
51
49 WARN_ON(clk->enabled == 0); 52 WARN_ON(clk->enabled == 0);
50 53
51 spin_lock_irqsave(&clocks_lock, flags); 54 spin_lock_irqsave(&clocks_lock, flags);