diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-10-07 05:41:31 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-10-22 13:10:23 +0300 |
commit | 2f4292a821711ec9f2c7781d1ee1a9570940bd02 (patch) | |
tree | 1521a45975efc1d21e4b2e4fb151d18472d3f4ae /drivers/iio/pressure/bmp280.h | |
parent | 1372d1a1979931a2a073b2cb683974f9fbe1230e (diff) | |
download | linux-2f4292a821711ec9f2c7781d1ee1a9570940bd02.tar.xz |
iio: pressure: bmp280: use devm action and remove labels from probe
We can drop some duplicate code if we use devm_action for disabling
regulators and pm and the managed variant of iio_device_register().
This allows us to completely remove all remove() callbacks from both
i2c and spi code.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/pressure/bmp280.h')
-rw-r--r-- | drivers/iio/pressure/bmp280.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/pressure/bmp280.h b/drivers/iio/pressure/bmp280.h index eda50ef65706..57ba0e85db91 100644 --- a/drivers/iio/pressure/bmp280.h +++ b/drivers/iio/pressure/bmp280.h @@ -112,7 +112,6 @@ int bmp280_common_probe(struct device *dev, unsigned int chip, const char *name, int irq); -int bmp280_common_remove(struct device *dev); /* PM ops */ extern const struct dev_pm_ops bmp280_dev_pm_ops; |