From: Ruan Jinjie Date: Tue, 8 Aug 2023 13:00:02 +0000 (+0800) Subject: mfd: tc3589x: Remove redundant of_match_ptr() X-Git-Tag: v6.6.7~1980^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e922937a78d9683fe8372d8e6b02f145eb451e4;p=platform%2Fkernel%2Flinux-starfive.git mfd: tc3589x: 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 Link: https://lore.kernel.org/r/20230808130003.4076702-1-ruanjinjie@huawei.com Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/tc3589x.c b/drivers/mfd/tc3589x.c index 16df64e..2812559 100644 --- a/drivers/mfd/tc3589x.c +++ b/drivers/mfd/tc3589x.c @@ -483,7 +483,7 @@ static struct i2c_driver tc3589x_driver = { .driver = { .name = "tc3589x", .pm = pm_sleep_ptr(&tc3589x_dev_pm_ops), - .of_match_table = of_match_ptr(tc3589x_match), + .of_match_table = tc3589x_match, }, .probe = tc3589x_probe, .remove = tc3589x_remove,