]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerArnd Bergmann <arnd@arndb.de>
Fri, 1 Jul 2022 13:14:26 +0000 (15:14 +0200)
commit620f83b8326ce9706b1118334f0257ae028ce045
treee66e02b3127ff67a2f7fc8f12bc1dd18add83140
parent03c765b0e3b4cb5063276b086c76f7a612856a9a
soc: ixp4xx/npe: Fix unused match warning

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>
drivers/soc/ixp4xx/ixp4xx-npe.c