aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Huckleberry <[email protected]>2019-06-27 15:06:42 -0700
committerStephen Boyd <[email protected]>2019-08-07 14:17:49 -0700
commita95fb581b144b5e73da382eaedb2e32027610597 (patch)
tree21b9169b997e7bab36b0709b1d737a6d63ffc549
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff)
clk: qoriq: Fix -Wunused-const-variable
drivers/clk/clk-qoriq.c:138:38: warning: unused variable 'p5020_cmux_grp1' [-Wunused-const-variable] static const struct clockgen_muxinfo p5020_cmux_grp1 drivers/clk/clk-qoriq.c:146:38: warning: unused variable 'p5020_cmux_grp2' [-Wunused-const-variable] static const struct clockgen_muxinfo p5020_cmux_grp2 In the definition of the p5020 chip, the p2041 chip's info was used instead. The p5020 and p2041 chips have different info. This is most likely a typo. Link: https://github.com/ClangBuiltLinux/linux/issues/525 Cc: [email protected] Signed-off-by: Nathan Huckleberry <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Reviewed-by: Nick Desaulniers <[email protected]> Acked-by: Scott Wood <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
-rw-r--r--drivers/clk/clk-qoriq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c
index 07f3b252f3e0..bed140f7375f 100644
--- a/drivers/clk/clk-qoriq.c
+++ b/drivers/clk/clk-qoriq.c
@@ -686,7 +686,7 @@ static const struct clockgen_chipinfo chipinfo[] = {
.guts_compat = "fsl,qoriq-device-config-1.0",
.init_periph = p5020_init_periph,
.cmux_groups = {
- &p2041_cmux_grp1, &p2041_cmux_grp2
+ &p5020_cmux_grp1, &p5020_cmux_grp2
},
.cmux_to_group = {
0, 1, -1