mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
staging: iio: call iio_device_unregister() in max517_remove()
Reported-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2d2111ea2c
commit
e8ccc11fbd
@ -264,6 +264,7 @@ exit:
|
|||||||
|
|
||||||
static int max517_remove(struct i2c_client *client)
|
static int max517_remove(struct i2c_client *client)
|
||||||
{
|
{
|
||||||
|
iio_device_unregister(i2c_get_clientdata(client));
|
||||||
iio_device_free(i2c_get_clientdata(client));
|
iio_device_free(i2c_get_clientdata(client));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user