Skip to content

Commit 620f83b

Browse files
linuswarndb
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected]' Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 03c765b commit 620f83b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soc/ixp4xx/ixp4xx-npe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ static const struct of_device_id ixp4xx_npe_of_match[] = {
758758
static struct platform_driver ixp4xx_npe_driver = {
759759
.driver = {
760760
.name = "ixp4xx-npe",
761-
.of_match_table = of_match_ptr(ixp4xx_npe_of_match),
761+
.of_match_table = ixp4xx_npe_of_match,
762762
},
763763
.probe = ixp4xx_npe_probe,
764764
.remove = ixp4xx_npe_remove,

0 commit comments

Comments
 (0)