mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
synced 2025-09-15 09:07:11 +10:00
regulator: pfuze100-regulator: Remove redundant of_match_ptr() macro
Since the driver pfuze100-regulator depends on CONFIG_OF, it makes no difference to wrap of_match_ptr() here. Remove the of_match_ptr() macro to clean it up. Signed-off-by: Chen Jiahao <chenjiahao16@huawei.com> Link: https://lore.kernel.org/r/20230809100428.2669817-7-chenjiahao16@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
c329adf302
commit
9e8925eb7f
@ -699,8 +699,7 @@ static int pfuze100_regulator_probe(struct i2c_client *client)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
if (client->dev.of_node) {
|
if (client->dev.of_node) {
|
||||||
match = of_match_device(of_match_ptr(pfuze_dt_ids),
|
match = of_match_device(pfuze_dt_ids, &client->dev);
|
||||||
&client->dev);
|
|
||||||
if (!match) {
|
if (!match) {
|
||||||
dev_err(&client->dev, "Error: No device match found\n");
|
dev_err(&client->dev, "Error: No device match found\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
Loading…
Reference in New Issue
Block a user