summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index f489bed2d848..ca2efca00734 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -2856,8 +2856,8 @@ void regulator_unregister(struct regulator_dev *rdev)
2856 list_del(&rdev->list); 2856 list_del(&rdev->list);
2857 if (rdev->supply) 2857 if (rdev->supply)
2858 regulator_put(rdev->supply); 2858 regulator_put(rdev->supply);
2859 device_unregister(&rdev->dev);
2860 kfree(rdev->constraints); 2859 kfree(rdev->constraints);
2860 device_unregister(&rdev->dev);
2861 mutex_unlock(&regulator_list_mutex); 2861 mutex_unlock(&regulator_list_mutex);
2862} 2862}
2863EXPORT_SYMBOL_GPL(regulator_unregister); 2863EXPORT_SYMBOL_GPL(regulator_unregister);