diff options
author | Chen Jiahao <chenjiahao16@huawei.com> | 2023-08-09 13:04:27 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-08-09 14:52:45 +0300 |
commit | 9e8925eb7fd6e5d93d9dfa9ca4628e897f0db8f1 (patch) | |
tree | 922bf0eb5ab720b3421df3094d783256e3938ec4 /drivers/regulator/pfuze100-regulator.c | |
parent | c329adf3026034c84ddd61c0b19db53d40510ae7 (diff) | |
download | linux-9e8925eb7fd6e5d93d9dfa9ca4628e897f0db8f1.tar.xz |
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>
Diffstat (limited to 'drivers/regulator/pfuze100-regulator.c')
-rw-r--r-- | drivers/regulator/pfuze100-regulator.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index 8d7e6c323324..46854602b3ea 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -699,8 +699,7 @@ static int pfuze100_regulator_probe(struct i2c_client *client) return -ENOMEM; if (client->dev.of_node) { - match = of_match_device(of_match_ptr(pfuze_dt_ids), - &client->dev); + match = of_match_device(pfuze_dt_ids, &client->dev); if (!match) { dev_err(&client->dev, "Error: No device match found\n"); return -ENODEV; |