Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dove: Drop a write-only variable

This fixes a W=1 build error:

arch/arm/mach-dove/common.c: In function ‘dove_clk_init’:
arch/arm/mach-dove/common.c:85:40: error: variable ‘gephy’ set but not used [-Werror=unused-but-set-variable]
85 | struct clk *xor0, *xor1, *ge, *gephy;
| ^~~~~

Fixes: 521674718af0 ("ARM: dove: add clock gating control")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>

authored by

Uwe Kleine-König and committed by
Gregory CLEMENT
dea56c78 4bf23b96

+2 -2
+2 -2
arch/arm/mach-dove/common.c
··· 82 82 { 83 83 struct clk *usb0, *usb1, *sata, *pex0, *pex1, *sdio0, *sdio1; 84 84 struct clk *nand, *camera, *i2s0, *i2s1, *crypto, *ac97, *pdma; 85 - struct clk *xor0, *xor1, *ge, *gephy; 85 + struct clk *xor0, *xor1, *ge; 86 86 87 87 tclk = clk_register_fixed_rate(NULL, "tclk", NULL, 0, dove_tclk); 88 88 ··· 102 102 pdma = dove_register_gate("pdma", "tclk", CLOCK_GATING_BIT_PDMA); 103 103 xor0 = dove_register_gate("xor0", "tclk", CLOCK_GATING_BIT_XOR0); 104 104 xor1 = dove_register_gate("xor1", "tclk", CLOCK_GATING_BIT_XOR1); 105 - gephy = dove_register_gate("gephy", "tclk", CLOCK_GATING_BIT_GIGA_PHY); 105 + dove_register_gate("gephy", "tclk", CLOCK_GATING_BIT_GIGA_PHY); 106 106 ge = dove_register_gate("ge", "gephy", CLOCK_GATING_BIT_GBE); 107 107 108 108 orion_clkdev_add(NULL, "orion_spi.0", tclk);