diff options
| author | Ioana Ciornei <ciorneiioana@gmail.com> | 2015-10-02 13:37:50 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-04 10:31:07 +0300 |
| commit | 877cdf9115122e068245326da519a848d2387221 (patch) | |
| tree | 1ab14d1f99d3897c30b3aa251240da46e565c86e /include/linux/platform_data | |
| parent | 86727e30d1d6485b5f8b4a84790ac659dc002d27 (diff) | |
| download | linux-877cdf9115122e068245326da519a848d2387221.tar.xz | |
staging: iio: resolver: replace iio_device_register by devm_iio_device_register
Use devm_iio_device_register instead of iio_device_register when the remove
function is only used to call iio_device_unregister in order to ease the error path.
Since resource managed functions implicitly call unregister at driver detach also remove
iio_device_unregister
Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
