From: Thierry Reding Date: Mon, 20 Mar 2017 16:14:14 +0000 (+0100) Subject: clk: tegra: Fix build warnings on Tegra20/Tegra30 X-Git-Tag: v4.14-rc1~926^2~53^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39133505caf993c2d61c7adc8cab753e8a0b815d;p=platform%2Fkernel%2Flinux-rpi.git clk: tegra: Fix build warnings on Tegra20/Tegra30 The recent conversion of proper const usage was only partial and didn't include Tegra20 and Tegra30 support. Fix that up. Signed-off-by: Thierry Reding --- diff --git a/drivers/clk/tegra/clk-periph.c b/drivers/clk/tegra/clk-periph.c index a5a5809..cf80831 100644 --- a/drivers/clk/tegra/clk-periph.c +++ b/drivers/clk/tegra/clk-periph.c @@ -195,7 +195,7 @@ struct clk *tegra_clk_register_periph(const char *name, } struct clk *tegra_clk_register_periph_nodiv(const char *name, - const char **parent_names, int num_parents, + const char * const *parent_names, int num_parents, struct tegra_clk_periph *periph, void __iomem *clk_base, u32 offset) { diff --git a/drivers/clk/tegra/clk.h b/drivers/clk/tegra/clk.h index 960e47e..945b070 100644 --- a/drivers/clk/tegra/clk.h +++ b/drivers/clk/tegra/clk.h @@ -590,7 +590,7 @@ struct clk *tegra_clk_register_periph(const char *name, struct tegra_clk_periph *periph, void __iomem *clk_base, u32 offset, unsigned long flags); struct clk *tegra_clk_register_periph_nodiv(const char *name, - const char **parent_names, int num_parents, + const char * const *parent_names, int num_parents, struct tegra_clk_periph *periph, void __iomem *clk_base, u32 offset);