Reported-by: Lars-Peter Clausen <lars@xxxxxxxxxx> Signed-off-by: Peter Meerwald <pmeerw@xxxxxxxxxx> Acked-by: Jonathan Cameron <jic23@xxxxxxxxxx> --- drivers/staging/iio/dac/max517.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/iio/dac/max517.c b/drivers/staging/iio/dac/max517.c index 60aef18..672fa51 100644 --- a/drivers/staging/iio/dac/max517.c +++ b/drivers/staging/iio/dac/max517.c @@ -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; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html