iio: pressure: bmp280: use devm action and remove labels from probe
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 7 Oct 2019 02:41:31 +0000 (04:41 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Oct 2019 10:10:23 +0000 (11:10 +0100)
commit2f4292a821711ec9f2c7781d1ee1a9570940bd02
tree1521a45975efc1d21e4b2e4fb151d18472d3f4ae
parent1372d1a1979931a2a073b2cb683974f9fbe1230e
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>
drivers/iio/pressure/bmp280-core.c
drivers/iio/pressure/bmp280-i2c.c
drivers/iio/pressure/bmp280-spi.c
drivers/iio/pressure/bmp280.h