thermal/drivers/db8500: Remove redundant of_match_ptr()
authorRuan Jinjie <ruanjinjie@huawei.com>
Wed, 9 Aug 2023 10:14:39 +0000 (18:14 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 16 Aug 2023 10:09:19 +0000 (12:09 +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: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230809101439.2663042-1-ruanjinjie@huawei.com
drivers/thermal/db8500_thermal.c

index fca5c2c93bf97720617c3f14e30b0c6645f88d09..576f88b6a1b3524c4089440169801fbe5ede59eb 100644 (file)
@@ -229,7 +229,7 @@ MODULE_DEVICE_TABLE(of, db8500_thermal_match);
 static struct platform_driver db8500_thermal_driver = {
        .driver = {
                .name = "db8500-thermal",
-               .of_match_table = of_match_ptr(db8500_thermal_match),
+               .of_match_table = db8500_thermal_match,
        },
        .probe = db8500_thermal_probe,
        .suspend = db8500_thermal_suspend,