[media] saa7134: fix warning with !MEDIA_CONTROLLER
authorArnd Bergmann <arnd@arndb.de>
Fri, 26 Feb 2016 15:25:17 +0000 (12:25 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Mar 2016 17:12:46 +0000 (14:12 -0300)
commit363bdb114434d021360c770871c2410df3965308
tree3d3900b5f81fa16f839721278eb836d11f7c9ceb
parent0d37ba6250d3b412796ee69169655f0eb2ada279
[media] saa7134: fix warning with !MEDIA_CONTROLLER

When CONFIG_MEDIA_CONTROLLER is disabled, we get a warning
about an unused function:

drivers/media/pci/saa7134/saa7134-core.c:832:13: error: 'saa7134_create_entities' defined but not used [-Werror=unused-function]

This moves the #ifdef outside of the function, as it is
never called here.

Fixes: ac90aa02d5b9 ("[media] saa7134: add media controller support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/saa7134/saa7134-core.c