Skip to content

Commit 9425f72

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/stpmic1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ MODULE_DEVICE_TABLE(of, stpmic1_of_match);
219219
static struct i2c_driver stpmic1_driver = {
220220
.driver = {
221221
.name = "stpmic1",
222-
.of_match_table = of_match_ptr(stpmic1_of_match),
222+
.of_match_table = stpmic1_of_match,
223223
.pm = pm_sleep_ptr(&stpmic1_pm),
224224
},
225225
.probe = stpmic1_probe,

0 commit comments

Comments
 (0)