OSDN Git Service

staging: iio: light: use devm_iio_device_register instead iio_device_register
authorIoana Ciornei <ciorneiioana@gmail.com>
Fri, 2 Oct 2015 10:37:49 +0000 (13:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 07:31:07 +0000 (08:31 +0100)
commit86727e30d1d6485b5f8b4a84790ac659dc002d27
tree2010dbda47dd75d2ee55ec27a970c7f75b3b8526
parent252fb58ceb42d82931c971b11f5ea1323caa8a35
staging: iio: light: use devm_iio_device_register instead iio_device_register

Replace iio_device_register with resource managed devm_iio_device_register in order
to ease the error path. Also delete the remove function since there is no need after
this change.

Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/light/isl29028.c
drivers/staging/iio/light/tsl2583.c