Skip to content

Commit dea56c7

Browse files
ukleinekgclement
authored andcommitted
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: 5216747 ("ARM: dove: add clock gating control") Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Gregory CLEMENT <[email protected]>
1 parent 4bf23b9 commit dea56c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/mach-dove/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static void __init dove_clk_init(void)
8282
{
8383
struct clk *usb0, *usb1, *sata, *pex0, *pex1, *sdio0, *sdio1;
8484
struct clk *nand, *camera, *i2s0, *i2s1, *crypto, *ac97, *pdma;
85-
struct clk *xor0, *xor1, *ge, *gephy;
85+
struct clk *xor0, *xor1, *ge;
8686

8787
tclk = clk_register_fixed_rate(NULL, "tclk", NULL, 0, dove_tclk);
8888

@@ -102,7 +102,7 @@ static void __init dove_clk_init(void)
102102
pdma = dove_register_gate("pdma", "tclk", CLOCK_GATING_BIT_PDMA);
103103
xor0 = dove_register_gate("xor0", "tclk", CLOCK_GATING_BIT_XOR0);
104104
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);
106106
ge = dove_register_gate("ge", "gephy", CLOCK_GATING_BIT_GBE);
107107

108108
orion_clkdev_add(NULL, "orion_spi.0", tclk);

0 commit comments

Comments
 (0)