Skip to content

Commit

Permalink
staging: iio: call iio_device_unregister() in max517_remove()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Meerwald authored and Greg Kroah-Hartman committed May 2, 2012
1 parent 2d2111e commit e8ccc11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/iio/dac/max517.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ static int max517_probe(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));

return 0;
Expand Down

0 comments on commit e8ccc11

Please sign in to comment.