diff options
Diffstat (limited to 'include/clk.h')
-rw-r--r-- | include/clk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clk.h b/include/clk.h index 18b2e3ca54..6568865d40 100644 --- a/include/clk.h +++ b/include/clk.h @@ -356,7 +356,7 @@ int soc_clk_dump(void); */ static inline bool clk_valid(struct clk *clk) { - return !!clk->dev; + return clk && !!clk->dev; } /** |