clk: pxa: Fix const discarding warning
authorStephen Boyd <sboyd@codeaurora.org>
Thu, 11 Jun 2015 23:08:51 +0000 (16:08 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 12 Jun 2015 21:30:12 +0000 (14:30 -0700)
A recent change to mark parent names as const missed this struct
member so we get warnings like:

drivers/clk/pxa/clk-pxa25x.c:122:2: warning: initialization
discards 'const' qualifier from pointer target type

Fix it.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/pxa/clk-pxa.h

index 7bf532d..d1de805 100644 (file)
@@ -72,7 +72,7 @@ struct desc_clk_cken {
        const char *name;
        const char *dev_id;
        const char *con_id;
-       const char **parent_names;
+       const char * const *parent_names;
        struct clk_fixed_factor lp;
        struct clk_fixed_factor hp;
        struct clk_gate gate;