hwmon: (adt7x10) Remove empty driver removal callback
authorCosmin Tanislav <cosmin.tanislav@analog.com>
Tue, 21 Dec 2021 21:58:39 +0000 (23:58 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:18 +0000 (17:03 -0800)
Not used to do anything anymore.

Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Link: https://lore.kernel.org/r/20211221215841.2641417-6-demonsingur@gmail.com
Tested-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Reviewed-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adt7310.c
drivers/hwmon/adt7410.c
drivers/hwmon/adt7x10.c
drivers/hwmon/adt7x10.h

index a830924..1efc0bd 100644 (file)
@@ -142,12 +142,6 @@ static int adt7310_spi_probe(struct spi_device *spi)
                             regmap);
 }
 
-static int adt7310_spi_remove(struct spi_device *spi)
-{
-       adt7x10_remove(&spi->dev, spi->irq);
-       return 0;
-}
-
 static const struct spi_device_id adt7310_id[] = {
        { "adt7310", 0 },
        { "adt7320", 0 },
@@ -161,7 +155,6 @@ static struct spi_driver adt7310_driver = {
                .pm     = ADT7X10_DEV_PM_OPS,
        },
        .probe          = adt7310_spi_probe,
-       .remove         = adt7310_spi_remove,
        .id_table       = adt7310_id,
 };
 module_spi_driver(adt7310_driver);
index 81950a0..aede5ba 100644 (file)
@@ -87,12 +87,6 @@ static int adt7410_i2c_probe(struct i2c_client *client)
        return adt7x10_probe(&client->dev, client->name, client->irq, regmap);
 }
 
-static int adt7410_i2c_remove(struct i2c_client *client)
-{
-       adt7x10_remove(&client->dev, client->irq);
-       return 0;
-}
-
 static const struct i2c_device_id adt7410_ids[] = {
        { "adt7410", 0 },
        { "adt7420", 0 },
@@ -107,7 +101,6 @@ static struct i2c_driver adt7410_driver = {
                .pm     = ADT7X10_DEV_PM_OPS,
        },
        .probe_new      = adt7410_i2c_probe,
-       .remove         = adt7410_i2c_remove,
        .id_table       = adt7410_ids,
        .address_list   = I2C_ADDRS(0x48, 0x49, 0x4a, 0x4b),
 };
index 147c28b..ea8cd91 100644 (file)
@@ -397,11 +397,6 @@ int adt7x10_probe(struct device *dev, const char *name, int irq,
 }
 EXPORT_SYMBOL_GPL(adt7x10_probe);
 
-void adt7x10_remove(struct device *dev, int irq)
-{
-}
-EXPORT_SYMBOL_GPL(adt7x10_remove);
-
 #ifdef CONFIG_PM_SLEEP
 
 static int adt7x10_suspend(struct device *dev)
index 55ff08b..ba22c32 100644 (file)
@@ -20,8 +20,6 @@ struct device;
 int adt7x10_probe(struct device *dev, const char *name, int irq,
                  struct regmap *regmap);
 
-void adt7x10_remove(struct device *dev, int irq);
-
 #ifdef CONFIG_PM_SLEEP
 extern const struct dev_pm_ops adt7x10_dev_pm_ops;
 #define ADT7X10_DEV_PM_OPS (&adt7x10_dev_pm_ops)