clk: tegra: Fix build warnings on Tegra20/Tegra30
authorThierry Reding <treding@nvidia.com>
Mon, 20 Mar 2017 16:14:14 +0000 (17:14 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 20 Mar 2017 16:14:14 +0000 (17:14 +0100)
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 <treding@nvidia.com>
drivers/clk/tegra/clk-periph.c
drivers/clk/tegra/clk.h

index a5a5809dce6d5e5dc9de0a8c9485c4df440866d7..cf80831de79d63260eb94b1208b76c216c5a20b8 100644 (file)
@@ -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)
 {
index 960e47e41fdfa4daa105e26505b04a9e7cadd6ad..945b07093afa61c826b30d4259124df53f9e4adf 100644 (file)
@@ -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);