drivers: clk: Handle gracefully NULL pointers

Prepare the way for a managed CLK API by handling NULL pointers without
crashing nor failing.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
diff --git a/include/clk.h b/include/clk.h
index 18b2e3c..6568865 100644
--- a/include/clk.h
+++ b/include/clk.h
@@ -356,7 +356,7 @@
  */
 static inline bool clk_valid(struct clk *clk)
 {
-	return !!clk->dev;
+	return clk && !!clk->dev;
 }
 
 /**