[media] em28xx: restore lost #ifdef
authorArnd Bergmann <arnd@arndb.de>
Fri, 26 Feb 2016 11:53:22 +0000 (08:53 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Mar 2016 17:12:26 +0000 (14:12 -0300)
commit0d37ba6250d3b412796ee69169655f0eb2ada279
tree513f8f3e6a76a4aff3a433157df84cf3f79a6aba
parentbc717d5e92c8c079280eb4acbe335c6f25041aa2
[media] em28xx: restore lost #ifdef

The cleanup that changed the em28xx driver to use v4l2_mc_create_media_graph
instead of its own implementation causes a build error when CONFIG_MEDIA_CONTROLLER
is disabled:

drivers/media/usb/em28xx/em28xx-video.c: In function 'em28xx_v4l2_init':
drivers/media/usb/em28xx/em28xx-video.c:2717:38: error: 'struct em28xx' has no member named 'media_dev'

This puts the new code inside the same #ifdef that controls the presence
of the 'media_dev' member, and that the old code was in.

Fixes: de39078779cb ("[media] em2xx: use v4l2_mc_create_media_graph()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/em28xx/em28xx-video.c
This page took 0.026141 seconds and 5 git commands to generate.