Skip to content

Commit d889540

Browse files
robherringWim Van Sebroeck
authored andcommitted
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]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Rob Herring <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 266da53 commit d889540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/watchdog/stm32_iwdg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ static struct platform_driver stm32_iwdg_driver = {
287287
.probe = stm32_iwdg_probe,
288288
.driver = {
289289
.name = "iwdg",
290-
.of_match_table = of_match_ptr(stm32_iwdg_of_match),
290+
.of_match_table = stm32_iwdg_of_match,
291291
},
292292
};
293293
module_platform_driver(stm32_iwdg_driver);

0 commit comments

Comments
 (0)