]> git.baikalelectronics.ru Git - kernel.git/commit
soc: ixp4xx/npe: Fix unused match warning
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 26 Jun 2022 07:43:15 +0000 (09:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 18:59:27 +0000 (20:59 +0200)
commit6ff46292f47ad8b99272abba079974069ade436a
treefd7f8bf80a38f954a7a43e5dbf1452bd8c1acfdb
parentb29b4d5dbd68c24b3fa7f76b45fc303d3532f1a3
soc: ixp4xx/npe: Fix unused match warning

[ Upstream commit 126cb89a4a491ca3c66c11b2080ed85e526f5d31 ]

The kernel test robot found this inconsistency:

  drivers/soc/ixp4xx/ixp4xx-npe.c:737:34: warning:
  'ixp4xx_npe_of_match' defined but not used [-Wunused-const-variable=]
     737 | static const struct of_device_id ixp4xx_npe_of_match[] = {

This is because the match is enclosed in the of_match_ptr()
which compiles into NULL when OF is disabled and this
is unnecessary.

Fix it by dropping of_match_ptr() around the match.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220626074315.61209-1-linus.walleij@linaro.org'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/ixp4xx/ixp4xx-npe.c