V4L/DVB (11673): v4l2-device: unregister i2c_clients when unregistering the v4l2_device.
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 2 May 2009 13:58:51 +0000 (10:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:20:51 +0000 (18:20 -0300)
commitb5b2b7ed569cedac4f5da38e08b01c88443187bd
treed21f735f5f50fd79ea72d176a2ec2872218ef0a2
parenta79b11c025a5757a5129e716e7e66dc36a2dfe21
V4L/DVB (11673): v4l2-device: unregister i2c_clients when unregistering the v4l2_device.

Until now I relied on i2c_del_adapter to unregister the i2c_clients for
me, however, if the i2c bus is a platform bus then it is never deleted.

So instead I need to unregister i2c clients when unregistering the
v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-common.c
drivers/media/video/v4l2-device.c
include/media/v4l2-subdev.h