Skip to content

Commit d47e4f9

Browse files
AxelLinbroonie
authored andcommitted
regulator: vqmmc-ipq4019: Remove ipq4019_regulator_remove
This driver is using devm_regulator_register() so no need to call regulator_unregister() in ipq4019_regulator_remove(). Signed-off-by: Axel Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 7efe347 commit d47e4f9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/regulator/vqmmc-ipq4019-regulator.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,13 @@ static int ipq4019_regulator_probe(struct platform_device *pdev)
8181
return 0;
8282
}
8383

84-
static int ipq4019_regulator_remove(struct platform_device *pdev)
85-
{
86-
struct regulator_dev *rdev = platform_get_drvdata(pdev);
87-
88-
regulator_unregister(rdev);
89-
90-
return 0;
91-
}
92-
9384
static const struct of_device_id regulator_ipq4019_of_match[] = {
9485
{ .compatible = "qcom,vqmmc-ipq4019-regulator", },
9586
{},
9687
};
9788

9889
static struct platform_driver ipq4019_regulator_driver = {
9990
.probe = ipq4019_regulator_probe,
100-
.remove = ipq4019_regulator_remove,
10191
.driver = {
10292
.name = "vqmmc-ipq4019-regulator",
10393
.owner = THIS_MODULE,

0 commit comments

Comments
 (0)