diff options
author | Frank Schaefer <fschaefer.oss@googlemail.com> | 2014-01-17 12:45:32 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-02-04 13:41:21 -0500 |
commit | d86bc65a64e1e1536d9f5f3287f8707997b4e8fc (patch) | |
tree | 842e5d68dab3b4c1d53c72c4096fb1dcacf2407b /drivers/media/usb/em28xx/em28xx-video.c | |
parent | cb497c75fd6ba3c4fb922d1f1b68746f426257a9 (diff) |
[media] em28xx-v4l: do not call em28xx_init_camera() if the device has no sensor
This avoids the unnecessary temporary registration of a dummy V4L2 clock.
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx-video.c')
-rw-r--r-- | drivers/media/usb/em28xx/em28xx-video.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c index 09e18da0b5cd..2775c9062c0a 100644 --- a/drivers/media/usb/em28xx/em28xx-video.c +++ b/drivers/media/usb/em28xx/em28xx-video.c | |||
@@ -2273,7 +2273,8 @@ static int em28xx_v4l2_init(struct em28xx *dev) | |||
2273 | } | 2273 | } |
2274 | 2274 | ||
2275 | em28xx_tuner_setup(dev); | 2275 | em28xx_tuner_setup(dev); |
2276 | em28xx_init_camera(dev); | 2276 | if (dev->em28xx_sensor != EM28XX_NOSENSOR) |
2277 | em28xx_init_camera(dev); | ||
2277 | 2278 | ||
2278 | /* Configure audio */ | 2279 | /* Configure audio */ |
2279 | ret = em28xx_audio_setup(dev); | 2280 | ret = em28xx_audio_setup(dev); |