diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-10-29 17:12:56 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-11-20 14:16:31 -0500 |
commit | 20dd882a09d3cce183eef4c9132c23439caaf0d6 (patch) | |
tree | be964bf741bd09cc0b945ba54f62a324fda5de35 /include/linux/clk-provider.h | |
parent | 1971dfb7e8f1cb9d26e8c37fee9e85a7fba6cde4 (diff) |
clk: Use static inline functions instead of macros for dummies
if CONFIG_OF=n:
drivers/clk/clk-cs2000-cp.c: In function ‘cs2000_remove’:
drivers/clk/clk-cs2000-cp.c:453:22: warning: unused variable ‘np’ [-Wunused-variable]
struct device_node *np = dev->of_node;
^
Convert dummies of_clk_del_provider() and of_clk_init() from macros to
static inline functions to kill such compiler warnings.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r-- | include/linux/clk-provider.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 7e931e75b800..1796f7d8526c 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h | |||
@@ -715,8 +715,7 @@ static inline int of_clk_add_provider(struct device_node *np, | |||
715 | { | 715 | { |
716 | return 0; | 716 | return 0; |
717 | } | 717 | } |
718 | #define of_clk_del_provider(np) \ | 718 | static inline void of_clk_del_provider(struct device_node *np) {} |
719 | { while (0); } | ||
720 | static inline struct clk *of_clk_src_simple_get( | 719 | static inline struct clk *of_clk_src_simple_get( |
721 | struct of_phandle_args *clkspec, void *data) | 720 | struct of_phandle_args *clkspec, void *data) |
722 | { | 721 | { |
@@ -741,8 +740,7 @@ static inline const char *of_clk_get_parent_name(struct device_node *np, | |||
741 | { | 740 | { |
742 | return NULL; | 741 | return NULL; |
743 | } | 742 | } |
744 | #define of_clk_init(matches) \ | 743 | static inline void of_clk_init(const struct of_device_id *matches) {} |
745 | { while (0); } | ||
746 | #endif /* CONFIG_OF */ | 744 | #endif /* CONFIG_OF */ |
747 | 745 | ||
748 | /* | 746 | /* |