linux/drivers/media/pci/ngene
Arnd Bergmann 492b183bd7 media: ngene: avoid unused variable warning
The newly added pdev variable is only used in an #ifdef, causing a
build warning without CONFIG_PCI_MSI, unless we move the declaration
inside the same #ifdef:

drivers/media/pci/ngene/ngene-core.c: In function 'ngene_start':
drivers/media/pci/ngene/ngene-core.c:1328:17: error: unused variable 'pdev' [-Werror=unused-variable]

Fixes: 6795bf6264 ("media: ngene: convert kernellog printing from printk() to dev_*() macros")

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-03-22 06:17:40 -04:00
..
Kconfig media: ngene: add support for DuoFlex S2 V4 addon modules 2018-03-06 11:12:15 -05:00
Makefile media: cxd2099: move driver out of staging into dvb-frontends 2018-03-06 08:50:18 -05:00
ngene-cards.c media: ngene: use common DVB I2C client handling helpers 2018-03-08 06:06:51 -05:00
ngene-core.c media: ngene: avoid unused variable warning 2018-03-22 06:17:40 -04:00
ngene-dvb.c media: ngene: compensate for TS buffer offset shifts 2018-03-06 12:54:26 -05:00
ngene-i2c.c media: ngene: add I2C_FUNC_I2C to the I2C interface functionality 2018-03-06 12:14:29 -05:00
ngene.h media: ngene: compensate for TS buffer offset shifts 2018-03-06 12:54:26 -05:00