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

Commit b13f4af2 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mauro Carvalho Chehab
Browse files

[media] adv7180: Free control handler on remove()



Make sure to free the control handler when the device is removed.

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 297a0ae3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -641,6 +641,7 @@ static int adv7180_remove(struct i2c_client *client)
	}

	v4l2_device_unregister_subdev(sd);
	adv7180_exit_controls(state);
	mutex_destroy(&state->mutex);
	return 0;
}