watchdog: stm32: Drop unnecessary of_match_ptr()
Subsystems (2)
PATCH 1/1 watchdog: stm32: Drop unnecessary of_match_ptr()
With COMPILE_TEST recently enabled, 0-day reports a warning:
drivers/watchdog/stm32_iwdg.c:215:34: warning: 'stm32_iwdg_of_match' defined but not used [-Wunused-const-variable=]
As STM32 platforms are always used with DT, drop the of_match_ptr().
Reported-by kernel test robot <[email protected]>
Signed-off-by Rob Herring <[email protected]>
--- drivers/watchdog/stm32_iwdg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/stm32_iwdg.c +1 -1
@@ -288,7 +288,7 @@ static struct platform_driver stm32_iwdg_driver = { .probe = stm32_iwdg_probe, .driver = { .name = "iwdg", - .of_match_table = of_match_ptr(stm32_iwdg_of_match), + .of_match_table = stm32_iwdg_of_match, }, };module_platform_driver (stm32_iwdg_driver);
Signature · 1 line
2.40.1
Quoted 9 lines · Rob Herring
With
COMPILE_TESTrecently enabled, 0-day reports a warning:
drivers/watchdog/stm32_iwdg.c:215:34: warning: 'stm32_iwdg_of_match' defined but not used [-Wunused-const-variable=]As STM32 platforms are always used with DT, drop the
of_match_ptr().Reported-by kernel test robot <[email protected]>Signed-off-by Rob Herring <[email protected]>
Reviewed-by Guenter Roeck <[email protected]>
Quoted 20 lines
--- drivers/watchdog/stm32_iwdg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/watchdog/stm32_iwdg.c +1
-1@@ -288,7 +288,7 @@ static struct platform_driver stm32_iwdg_driver = { .probe = stm32_iwdg_probe, .driver = { .name = "iwdg", - .of_match_table = of_match_ptr(stm32_iwdg_of_match), + .of_match_table = stm32_iwdg_of_match, }, };module_platform_driver (stm32_iwdg_driver);Signature · 1 line
2.40.1