Skip to content

Commit c39300c

Browse files
ruanjinjie-engdlezcano
authored andcommitted
thermal/drivers/db8500: Remove redundant of_match_ptr()
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
1 parent e9b1de7 commit c39300c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/thermal/db8500_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ MODULE_DEVICE_TABLE(of, db8500_thermal_match);
229229
static struct platform_driver db8500_thermal_driver = {
230230
.driver = {
231231
.name = "db8500-thermal",
232-
.of_match_table = of_match_ptr(db8500_thermal_match),
232+
.of_match_table = db8500_thermal_match,
233233
},
234234
.probe = db8500_thermal_probe,
235235
.suspend = db8500_thermal_suspend,

0 commit comments

Comments
 (0)