WSL2-Linux-Kernel/drivers/media/platform/atmel
Eugen Hristev f61c0d97bd media: atmel: atmel-sama7g5-isc: fix warning in configs without OF
[ Upstream commit b2bae4b8e6 ]

All warnings (new ones prefixed by >>):

>> drivers/media/platform/atmel/atmel-sama7g5-isc.c:610:34: warning: unused variable 'microchip_xisc_of_match' [-Wunused-const-variable]
   static const struct of_device_id microchip_xisc_of_match[] = {
                                    ^
   13 warnings generated.

vim +/microchip_xisc_of_match +610 drivers/media/platform/atmel/atmel-sama7g5-isc.c

   609
 > 610  static const struct of_device_id microchip_xisc_of_match[] = {
   611          { .compatible = "microchip,sama7g5-isc" },
   612          { }
   613  };
   614  MODULE_DEVICE_TABLE(of, microchip_xisc_of_match);
   615

Fixed warning by guarding the atmel_isc_of_match by CONFIG_OF.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: c9aa973884 ("media: atmel: atmel-isc: add microchip-xisc driver")
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:23:20 +02:00
..
Kconfig media: atmel: fix build when ISC=m and XISC=y 2021-07-30 13:01:52 +02:00
Makefile media: atmel: fix build when ISC=m and XISC=y 2021-07-30 13:01:52 +02:00
atmel-isc-base.c media: atmel: atmel-isc-base: report frame sizes as full supported range 2022-04-08 14:23:59 +02:00
atmel-isc-regs.h media: atmel: atmel-isc: add microchip-xisc driver 2021-06-08 15:46:31 +02:00
atmel-isc.h media: atmel: fix the ispck initialization 2021-11-18 19:16:29 +01:00
atmel-isi.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
atmel-isi.h media: atmel: atmel-isi: add support for mono sensors, GRAY and Y16 2019-12-16 10:16:56 +01:00
atmel-sama5d2-isc.c media: atmel: atmel-sama5d2-isc: fix wrong mask in YUYV format check 2022-06-09 10:22:58 +02:00
atmel-sama7g5-isc.c media: atmel: atmel-sama7g5-isc: fix warning in configs without OF 2022-08-17 14:23:20 +02:00