i2c: npcm: Remove unused variable clk_regmap
Remove unused variable clk_regmap. Signed-off-by: Tali Perry <tali.perry1@gmail.com> Signed-off-by: Tyrone Ting <kfting@nuvoton.com> Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Signed-off-by: Wolfram Sang <wsa@kernel.org>
This commit is contained in:
Родитель
0585c1d20f
Коммит
94acda59ad
|
@ -2231,7 +2231,6 @@ static int npcm_i2c_probe_bus(struct platform_device *pdev)
|
|||
{
|
||||
struct device_node *np = pdev->dev.of_node;
|
||||
static struct regmap *gcr_regmap;
|
||||
static struct regmap *clk_regmap;
|
||||
struct i2c_adapter *adap;
|
||||
struct npcm_i2c *bus;
|
||||
struct clk *i2c_clk;
|
||||
|
@ -2259,10 +2258,6 @@ static int npcm_i2c_probe_bus(struct platform_device *pdev)
|
|||
return PTR_ERR(gcr_regmap);
|
||||
regmap_write(gcr_regmap, NPCM_I2CSEGCTL, NPCM_I2CSEGCTL_INIT_VAL);
|
||||
|
||||
clk_regmap = syscon_regmap_lookup_by_compatible("nuvoton,npcm750-clk");
|
||||
if (IS_ERR(clk_regmap))
|
||||
return PTR_ERR(clk_regmap);
|
||||
|
||||
bus->reg = devm_platform_ioremap_resource(pdev, 0);
|
||||
if (IS_ERR(bus->reg))
|
||||
return PTR_ERR(bus->reg);
|
||||
|
|
Загрузка…
Ссылка в новой задаче