Commit 12f457dd authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branch 'regulator/for-linus' into regulator-next

parents 9ee4be41 58fb5cf5
...@@ -2856,8 +2856,8 @@ void regulator_unregister(struct regulator_dev *rdev) ...@@ -2856,8 +2856,8 @@ void regulator_unregister(struct regulator_dev *rdev)
list_del(&rdev->list); list_del(&rdev->list);
if (rdev->supply) if (rdev->supply)
regulator_put(rdev->supply); regulator_put(rdev->supply);
device_unregister(&rdev->dev);
kfree(rdev->constraints); kfree(rdev->constraints);
device_unregister(&rdev->dev);
mutex_unlock(&regulator_list_mutex); mutex_unlock(&regulator_list_mutex);
} }
EXPORT_SYMBOL_GPL(regulator_unregister); EXPORT_SYMBOL_GPL(regulator_unregister);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment