From: Zhu Wang Date: Tue, 8 Aug 2023 13:00:22 +0000 (+0800) Subject: mfd: lochnagar-i2c: Remove redundant of_match_ptr() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d20642ad4f0c831e51a9a71835077a766ade7a4d;p=linux.git mfd: lochnagar-i2c: Remove redundant of_match_ptr() The driver depends on CONFIG_OF, so it is not necessary to use of_match_ptr() here. We remove of_match_ptr() here. Signed-off-by: Zhu Wang Acked-by: Charles Keepax Link: https://lore.kernel.org/r/20230808130023.202700-8-wangzhu9@huawei.com Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/lochnagar-i2c.c b/drivers/mfd/lochnagar-i2c.c index 3c8843117080c..59092f839d651 100644 --- a/drivers/mfd/lochnagar-i2c.c +++ b/drivers/mfd/lochnagar-i2c.c @@ -379,7 +379,7 @@ static int lochnagar_i2c_probe(struct i2c_client *i2c) static struct i2c_driver lochnagar_i2c_driver = { .driver = { .name = "lochnagar", - .of_match_table = of_match_ptr(lochnagar_of_match), + .of_match_table = lochnagar_of_match, .suppress_bind_attrs = true, }, .probe = lochnagar_i2c_probe,