summaryrefslogtreecommitdiff
path: root/drivers/mfd/act8945a.c
diff options
context:
space:
mode:
authorZhu Wang <wangzhu9@huawei.com>2023-08-08 21:00:19 +0800
committerLee Jones <lee@kernel.org>2023-08-22 08:07:50 +0100
commit0003732302491e791b97cb858ee900085fc1800e (patch)
tree1ca2c2eedb6934c8166a55ca6d2e1040a074bbce /drivers/mfd/act8945a.c
parent6192a8a17979a7bc4dca3e0059b121de536bb726 (diff)
mfd: act8945a: 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 <wangzhu9@huawei.com> Link: https://lore.kernel.org/r/20230808130023.202700-5-wangzhu9@huawei.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd/act8945a.c')
-rw-r--r--drivers/mfd/act8945a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/act8945a.c b/drivers/mfd/act8945a.c
index 64876537f066..4e32ac3d573e 100644
--- a/drivers/mfd/act8945a.c
+++ b/drivers/mfd/act8945a.c
@@ -68,7 +68,7 @@ MODULE_DEVICE_TABLE(of, act8945a_of_match);
static struct i2c_driver act8945a_i2c_driver = {
.driver = {
.name = "act8945a",
- .of_match_table = of_match_ptr(act8945a_of_match),
+ .of_match_table = act8945a_of_match,
},
.probe = act8945a_i2c_probe,
.id_table = act8945a_i2c_id,