V4L/DVB (11758): 2: handle unregister for non-I2C builds
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 11 May 2009 16:37:41 +0000 (13:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:21:01 +0000 (18:21 -0300)
commitb7fd6067143181becb5b14765f4ad25857846491
treefafa5962a621e213cd1200d4a2dec13eaf6ac213
parent507a34f450e3bac2940da4549ca56bcba25184e7
V4L/DVB (11758): 2: handle unregister for non-I2C builds

Build fails when CONFIG_I2C=n, so handle that case in the if block:

drivers/built-in.o: In function `v4l2_device_unregister':
(.text+0x157821): undefined reference to `i2c_unregister_device'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-device.c