Skip to content

Commit 58dffa9

Browse files
hvilleneuvedooalexandrebelloni
authored andcommitted
rtc: pcf2127: remove unused function argument
Fixes the following W=1 kernel build warning(s): drivers/rtc/rtc-pcf2127.c: In function ‘pcf2127_probe’: drivers/rtc/rtc-pcf2127.c:635:32: warning: unused parameter ‘name’ [-Wunused-parameter] 635 | int alarm_irq, const char *name, bool is_pcf2127) | ~~~~~~~~~~~~^~~~ Signed-off-by: Hugo Villeneuve <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent e4163fc commit 58dffa9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

drivers/rtc/rtc-pcf2127.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ static int pcf2127_configure_interrupt_pins(struct device *dev)
11031103
}
11041104

11051105
static int pcf2127_probe(struct device *dev, struct regmap *regmap,
1106-
int alarm_irq, const char *name, const struct pcf21xx_config *config)
1106+
int alarm_irq, const struct pcf21xx_config *config)
11071107
{
11081108
struct pcf2127 *pcf2127;
11091109
int ret = 0;
@@ -1402,8 +1402,7 @@ static int pcf2127_i2c_probe(struct i2c_client *client)
14021402
return PTR_ERR(regmap);
14031403
}
14041404

1405-
return pcf2127_probe(&client->dev, regmap, client->irq,
1406-
pcf2127_i2c_driver.driver.name, variant);
1405+
return pcf2127_probe(&client->dev, regmap, client->irq, variant);
14071406
}
14081407

14091408
static struct i2c_driver pcf2127_i2c_driver = {
@@ -1475,9 +1474,7 @@ static int pcf2127_spi_probe(struct spi_device *spi)
14751474
return PTR_ERR(regmap);
14761475
}
14771476

1478-
return pcf2127_probe(&spi->dev, regmap, spi->irq,
1479-
pcf2127_spi_driver.driver.name,
1480-
variant);
1477+
return pcf2127_probe(&spi->dev, regmap, spi->irq, variant);
14811478
}
14821479

14831480
static const struct spi_device_id pcf2127_spi_id[] = {

0 commit comments

Comments
 (0)