diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2022-06-26 09:43:15 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-07-21 21:24:40 +0200 |
| commit | c0cba036bfe8e29ea2f0e852eb9880e3fcca1071 (patch) | |
| tree | 209532cf0804dace569346aeb7b7d4d0aed888f4 /drivers | |
| parent | 26bb7afc027ce6ac8ab6747babec674d55689ff0 (diff) | |
| download | linux-c0cba036bfe8e29ea2f0e852eb9880e3fcca1071.tar.gz linux-c0cba036bfe8e29ea2f0e852eb9880e3fcca1071.tar.bz2 linux-c0cba036bfe8e29ea2f0e852eb9880e3fcca1071.zip | |
soc: ixp4xx/npe: Fix unused match warning
[ Upstream commit 620f83b8326ce9706b1118334f0257ae028ce045 ]
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>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/soc/ixp4xx/ixp4xx-npe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/ixp4xx/ixp4xx-npe.c b/drivers/soc/ixp4xx/ixp4xx-npe.c index f490c4ca51f5..a0159805d061 100644 --- a/drivers/soc/ixp4xx/ixp4xx-npe.c +++ b/drivers/soc/ixp4xx/ixp4xx-npe.c @@ -743,7 +743,7 @@ static const struct of_device_id ixp4xx_npe_of_match[] = { static struct platform_driver ixp4xx_npe_driver = { .driver = { .name = "ixp4xx-npe", - .of_match_table = of_match_ptr(ixp4xx_npe_of_match), + .of_match_table = ixp4xx_npe_of_match, }, .probe = ixp4xx_npe_probe, .remove = ixp4xx_npe_remove, |
