mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-06 09:29:41 +00: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)
|
||||
{
|
||||
iio_device_unregister(i2c_get_clientdata(client));
|
||||
iio_device_free(i2c_get_clientdata(client));
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user