Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8ccc11f authored by Peter Meerwald's avatar Peter Meerwald Committed by Greg Kroah-Hartman
Browse files

staging: iio: call iio_device_unregister() in max517_remove()

parent 2d2111ea
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;