mfd: lochnagar-i2c: Remove redundant of_match_ptr()
authorZhu Wang <wangzhu9@huawei.com>
Tue, 8 Aug 2023 13:00:22 +0000 (21:00 +0800)
committerLee Jones <lee@kernel.org>
Tue, 22 Aug 2023 07:07:51 +0000 (08:07 +0100)
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 <wangzhu9@huawei.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230808130023.202700-8-wangzhu9@huawei.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/lochnagar-i2c.c

index 3c8843117080ccc8a3185d9cf60cedadd0a95c9e..59092f839d65158762e14be9d91af4c1fd105aee 100644 (file)
@@ -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,