]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7d5d1052cffe17216b42c778dc0884a00d3337f9
tree484e56cf9c2e6db9a9b9f440049984a95c7ad240
parent1a8afc51d4f7ea1bb17417e0232d049ab12eca0b
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