pwm: omap-dmtimer: Remove redundant of_match_ptr()
authorRuan Jinjie <ruanjinjie@huawei.com>
Thu, 10 Aug 2023 07:42:58 +0000 (15:42 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 6 Oct 2023 08:37:28 +0000 (10:37 +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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-omap-dmtimer.c

index 4889fbd8a4311afd33c9df8d6b5c1a991562176d..94faa4650686672f27eed1252c051e6ef7744d09 100644 (file)
@@ -466,7 +466,7 @@ MODULE_DEVICE_TABLE(of, pwm_omap_dmtimer_of_match);
 static struct platform_driver pwm_omap_dmtimer_driver = {
        .driver = {
                .name = "omap-dmtimer-pwm",
-               .of_match_table = of_match_ptr(pwm_omap_dmtimer_of_match),
+               .of_match_table = pwm_omap_dmtimer_of_match,
        },
        .probe = pwm_omap_dmtimer_probe,
        .remove_new = pwm_omap_dmtimer_remove,