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>
This commit is contained in:
Geert Uytterhoeven 2015-10-29 22:12:56 +01:00 committed by Stephen Boyd
parent 1971dfb7e8
commit 20dd882a09
1 changed files with 2 additions and 4 deletions

View File

@ -715,8 +715,7 @@ static inline int of_clk_add_provider(struct device_node *np,
{ {
return 0; return 0;
} }
#define of_clk_del_provider(np) \ static inline void of_clk_del_provider(struct device_node *np) {}
{ while (0); }
static inline struct clk *of_clk_src_simple_get( static inline struct clk *of_clk_src_simple_get(
struct of_phandle_args *clkspec, void *data) struct of_phandle_args *clkspec, void *data)
{ {
@ -741,8 +740,7 @@ static inline const char *of_clk_get_parent_name(struct device_node *np,
{ {
return NULL; return NULL;
} }
#define of_clk_init(matches) \ static inline void of_clk_init(const struct of_device_id *matches) {}
{ while (0); }
#endif /* CONFIG_OF */ #endif /* CONFIG_OF */
/* /*