OSDN Git Service

iio: gyro: adis16080: use devm_iio_device_register() in probe
authorAlexandru Ardelean <aardelean@deviqon.com>
Mon, 13 Sep 2021 11:53:08 +0000 (14:53 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 17 Oct 2021 10:05:54 +0000 (11:05 +0100)
commitda6fd2590940803aae1426a30a64c95da8157cf8
tree5c5fb1f54a30dbb099f8eea6384fe3b8c68e73bd
parent14a6ee6ec568463d1d1a800928194e769c6c802a
iio: gyro: adis16080: use devm_iio_device_register() in probe

There is nothing else that needs to be done for this driver. The remove
hook calls only the iio_device_unregister() hook.

So this driver can use devm_iio_device_register() directly.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210913115308.301877-1-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/adis16080.c