aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/clk.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h
index 8b70342e7e0b..071e24083dc8 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -12,6 +12,7 @@
12#ifndef __LINUX_CLK_H 12#ifndef __LINUX_CLK_H
13#define __LINUX_CLK_H 13#define __LINUX_CLK_H
14 14
15#include <linux/err.h>
15#include <linux/kernel.h> 16#include <linux/kernel.h>
16#include <linux/notifier.h> 17#include <linux/notifier.h>
17 18
@@ -320,12 +321,12 @@ struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec);
320#else 321#else
321static inline struct clk *of_clk_get(struct device_node *np, int index) 322static inline struct clk *of_clk_get(struct device_node *np, int index)
322{ 323{
323 return NULL; 324 return ERR_PTR(-ENOENT);
324} 325}
325static inline struct clk *of_clk_get_by_name(struct device_node *np, 326static inline struct clk *of_clk_get_by_name(struct device_node *np,
326 const char *name) 327 const char *name)
327{ 328{
328 return NULL; 329 return ERR_PTR(-ENOENT);
329} 330}
330#endif 331#endif
331 332