diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2022-05-23 10:55:20 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-05-27 16:02:21 +0200 |
commit | 526f3f3b102f05e97d5e51fb0dcf5037c7be9722 (patch) | |
tree | 8049450597d88870d0baad0c8092420ada313034 /drivers/soc/ixp4xx | |
parent | ARM: ep93xx: Make ts72xx_register_flash() static (diff) | |
download | linux-526f3f3b102f05e97d5e51fb0dcf5037c7be9722.tar.xz linux-526f3f3b102f05e97d5e51fb0dcf5037c7be9722.zip |
soc: ixp4xx/qmgr: 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.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220523085520.913217-1-linus.walleij@linaro.org'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/soc/ixp4xx')
-rw-r--r-- | drivers/soc/ixp4xx/ixp4xx-qmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/ixp4xx/ixp4xx-qmgr.c b/drivers/soc/ixp4xx/ixp4xx-qmgr.c index 9154c7029b05..291086bb9313 100644 --- a/drivers/soc/ixp4xx/ixp4xx-qmgr.c +++ b/drivers/soc/ixp4xx/ixp4xx-qmgr.c @@ -459,7 +459,7 @@ static const struct of_device_id ixp4xx_qmgr_of_match[] = { static struct platform_driver ixp4xx_qmgr_driver = { .driver = { .name = "ixp4xx-qmgr", - .of_match_table = of_match_ptr(ixp4xx_qmgr_of_match), + .of_match_table = ixp4xx_qmgr_of_match, }, .probe = ixp4xx_qmgr_probe, .remove = ixp4xx_qmgr_remove, |