summaryrefslogtreecommitdiffstats
path: root/arch/m68k/coldfire/clk.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/coldfire/clk.c')
-rw-r--r--arch/m68k/coldfire/clk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/m68k/coldfire/clk.c b/arch/m68k/coldfire/clk.c
index 1e3c7e9193d1..856069a3196d 100644
--- a/arch/m68k/coldfire/clk.c
+++ b/arch/m68k/coldfire/clk.c
@@ -121,6 +121,9 @@ EXPORT_SYMBOL(clk_put);
unsigned long clk_get_rate(struct clk *clk)
{
+ if (!clk)
+ return 0;
+
return clk->rate;
}
EXPORT_SYMBOL(clk_get_rate);