summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus/max31785.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2020-10-26 11:53:52 +0100
committerGuenter Roeck <linux@roeck-us.net>2020-12-03 02:42:23 +0100
commit3bce071a301f44ffd08bada9b2e8238b625f8f8c (patch)
tree4763c3f5d93b631254e712cfc2afba41c07c57bb /drivers/hwmon/pmbus/max31785.c
parenthwmon: (adt7470) Create functions for updating readings and limits (diff)
downloadlinux-3bce071a301f44ffd08bada9b2e8238b625f8f8c.tar.xz
linux-3bce071a301f44ffd08bada9b2e8238b625f8f8c.zip
hwmon: (pmbus) shrink code and remove pmbus_do_remove()
The only action currently performed in pmbus_do_remove() is removing the debugfs hierarchy. We can schedule a devm action at probe time and remove pmbus_do_remove() entirely from all pmbus drivers. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Link: https://lore.kernel.org/r/20201026105352.20359-1-brgl@bgdev.pl [groeck: Removed references to pmbus_do_remove from documentation] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus/max31785.c')
-rw-r--r--drivers/hwmon/pmbus/max31785.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/max31785.c b/drivers/hwmon/pmbus/max31785.c
index 839b957bc03e..e5a9f4019cd5 100644
--- a/drivers/hwmon/pmbus/max31785.c
+++ b/drivers/hwmon/pmbus/max31785.c
@@ -390,7 +390,6 @@ static struct i2c_driver max31785_driver = {
.of_match_table = max31785_of_match,
},
.probe_new = max31785_probe,
- .remove = pmbus_do_remove,
.id_table = max31785_id,
};