Skip to content

Commit 94acda5

Browse files
TaliPerrywsakernel
authored andcommitted
i2c: npcm: Remove unused variable clk_regmap
Remove unused variable clk_regmap. Signed-off-by: Tali Perry <[email protected]> Signed-off-by: Tyrone Ting <[email protected]> Reviewed-by: Jonathan Neuschäfer <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 0585c1d commit 94acda5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/i2c/busses/i2c-npcm7xx.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,7 +2231,6 @@ static int npcm_i2c_probe_bus(struct platform_device *pdev)
22312231
{
22322232
struct device_node *np = pdev->dev.of_node;
22332233
static struct regmap *gcr_regmap;
2234-
static struct regmap *clk_regmap;
22352234
struct i2c_adapter *adap;
22362235
struct npcm_i2c *bus;
22372236
struct clk *i2c_clk;
@@ -2259,10 +2258,6 @@ static int npcm_i2c_probe_bus(struct platform_device *pdev)
22592258
return PTR_ERR(gcr_regmap);
22602259
regmap_write(gcr_regmap, NPCM_I2CSEGCTL, NPCM_I2CSEGCTL_INIT_VAL);
22612260

2262-
clk_regmap = syscon_regmap_lookup_by_compatible("nuvoton,npcm750-clk");
2263-
if (IS_ERR(clk_regmap))
2264-
return PTR_ERR(clk_regmap);
2265-
22662261
bus->reg = devm_platform_ioremap_resource(pdev, 0);
22672262
if (IS_ERR(bus->reg))
22682263
return PTR_ERR(bus->reg);

0 commit comments

Comments
 (0)