summaryrefslogtreecommitdiff
path: root/arch/mips/ralink/clk.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/ralink/clk.c')
-rw-r--r--arch/mips/ralink/clk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/ralink/clk.c b/arch/mips/ralink/clk.c
index eb1c61917eb7..1b7df115eb60 100644
--- a/arch/mips/ralink/clk.c
+++ b/arch/mips/ralink/clk.c
@@ -53,6 +53,9 @@ EXPORT_SYMBOL_GPL(clk_disable);
unsigned long clk_get_rate(struct clk *clk)
{
+ if (!clk)
+ return 0;
+
return clk->rate;
}
EXPORT_SYMBOL_GPL(clk_get_rate);