Skip to content

Commit d20642a

Browse files
PeterZhu789lag-linaro
authored andcommitted
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 <[email protected]> Acked-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 9425f72 commit d20642a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/lochnagar-i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ static int lochnagar_i2c_probe(struct i2c_client *i2c)
379379
static struct i2c_driver lochnagar_i2c_driver = {
380380
.driver = {
381381
.name = "lochnagar",
382-
.of_match_table = of_match_ptr(lochnagar_of_match),
382+
.of_match_table = lochnagar_of_match,
383383
.suppress_bind_attrs = true,
384384
},
385385
.probe = lochnagar_i2c_probe,

0 commit comments

Comments
 (0)