mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
soc: ixp4xx/npe: Fix unused match warning
[ Upstream commit 620f83b832
]
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>
This commit is contained in:
parent
a3c7c1a726
commit
c7d4b3ec63
1 changed files with 1 additions and 1 deletions
|
@ -735,7 +735,7 @@ static const struct of_device_id ixp4xx_npe_of_match[] = {
|
||||||
static struct platform_driver ixp4xx_npe_driver = {
|
static struct platform_driver ixp4xx_npe_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ixp4xx-npe",
|
.name = "ixp4xx-npe",
|
||||||
.of_match_table = of_match_ptr(ixp4xx_npe_of_match),
|
.of_match_table = ixp4xx_npe_of_match,
|
||||||
},
|
},
|
||||||
.probe = ixp4xx_npe_probe,
|
.probe = ixp4xx_npe_probe,
|
||||||
.remove = ixp4xx_npe_remove,
|
.remove = ixp4xx_npe_remove,
|
||||||
|
|
Loading…
Reference in a new issue