staging: iio: ade7854: use devm_iio_device_register
authorAlison Schofield <amsfield22@gmail.com>
Sun, 28 Feb 2016 08:22:50 +0000 (00:22 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commita04b4e5005d95d80248fdec66180cbb9f020afea
tree0406ce394f8bb18685179f00bfb23bc5b54bf91f
parent8f27f7323f064e0e847d8b97565499da53d485b5
staging: iio: ade7854: use devm_iio_device_register

Replace iio_device_register with the device managed version.
This change is safe because it does not change the order of
any device removal actions. Unregistering the device was the
only removal action. The newly emptied .remove functions are
deleted.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/meter/ade7854-i2c.c
drivers/staging/iio/meter/ade7854-spi.c
drivers/staging/iio/meter/ade7854.c
This page took 0.024304 seconds and 5 git commands to generate.