watchdog: pm8916_wdt: Remove redundant of_match_ptr()
authorRuan Jinjie <ruanjinjie@huawei.com>
Fri, 11 Aug 2023 06:27:07 +0000 (14:27 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 19 Aug 2023 15:36:18 +0000 (17:36 +0200)
The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230811062707.2301583-1-ruanjinjie@huawei.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/pm8916_wdt.c

index f4bfbffaf49ceda5c47da5fa47cc6d70befedc63..f3fcbeb0852cc824fe31289eb9f8a8b63a8ab345 100644 (file)
@@ -266,7 +266,7 @@ static struct platform_driver pm8916_wdt_driver = {
        .probe = pm8916_wdt_probe,
        .driver = {
                .name = "pm8916-wdt",
-               .of_match_table = of_match_ptr(pm8916_wdt_id_table),
+               .of_match_table = pm8916_wdt_id_table,
                .pm = &pm8916_wdt_pm_ops,
        },
 };