iio: pressure: hp03: update device probe to register with devm functions
authorThéo Borém Fabris <theobf@usp.br>
Mon, 9 Aug 2021 20:30:14 +0000 (17:30 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Aug 2021 15:58:37 +0000 (16:58 +0100)
commitffc6659befd63d810a75ead16904813f48afa5e8
tree484e56cf9c2e6db9a9b9f440049984a95c7ad240
parentcabd6e9cf22dc80544c3eb09c4169a05e94a6d3f
iio: pressure: hp03: update device probe to register with devm functions

Update device probe to register resources with device-managed functions.
Further, get rid of device-specific remove callback which is no longer
needed.

Signed-off-by: Théo Borém Fabris <theobf@usp.br>
Link: https://lore.kernel.org/r/20210809203014.10955-1-theobf@usp.br
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/hp03.c