diff options
author | Jonathan Cameron | 2011-10-14 15:46:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-10-18 00:34:53 +0200 |
commit | d2fffd6c2fd60fe9ab63ef30758d9d43a5057549 (patch) | |
tree | 7c0178872f67c15707cd3c89f82352ba90da1d09 /drivers/staging/iio/light/isl29018.c | |
parent | iio: adc: remove ADT75 driver - hwmon/lm75 will take over ADT75 support (diff) | |
download | kernel-qcow2-linux-d2fffd6c2fd60fe9ab63ef30758d9d43a5057549.tar.gz kernel-qcow2-linux-d2fffd6c2fd60fe9ab63ef30758d9d43a5057549.tar.xz kernel-qcow2-linux-d2fffd6c2fd60fe9ab63ef30758d9d43a5057549.zip |
staging:iio: fix removal path to allow correct freeing.
Fix a dumb lack of consideration of the effect of combining
the iio_device_unregister and iio_free_device calls into
one. There is no valid place to free some of the sysfs
array elements.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/light/isl29018.c')
-rw-r--r-- | drivers/staging/iio/light/isl29018.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c index 6958aa5809ad..9dc9e6358394 100644 --- a/drivers/staging/iio/light/isl29018.c +++ b/drivers/staging/iio/light/isl29018.c @@ -581,6 +581,7 @@ static int __devexit isl29018_remove(struct i2c_client *client) dev_dbg(&client->dev, "%s()\n", __func__); iio_device_unregister(indio_dev); + iio_free_device(indio_dev); return 0; } |