commit | 877cdf9115122e068245326da519a848d2387221 | [log] [tgz] |
---|---|---|
author | Ioana Ciornei <ciorneiioana@gmail.com> | Fri Oct 02 13:37:50 2015 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Oct 04 08:31:07 2015 +0100 |
tree | 1ab14d1f99d3897c30b3aa251240da46e565c86e | |
parent | 86727e30d1d6485b5f8b4a84790ac659dc002d27 [diff] |
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>