提交 90609503 编写于 作者: A Axel Lin 提交者: Liam Girdwood

regulator: db8500-prcmu: small fixes

Small cleanups for better readability.
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
上级 6e0414a5
...@@ -266,7 +266,7 @@ static struct regulator_ops db8500_regulator_switch_ops = { ...@@ -266,7 +266,7 @@ static struct regulator_ops db8500_regulator_switch_ops = {
* Regulator information * Regulator information
*/ */
static struct db8500_regulator_info static struct db8500_regulator_info
db8500_regulator_info[DB8500_NUM_REGULATORS] = { db8500_regulator_info[DB8500_NUM_REGULATORS] = {
[DB8500_REGULATOR_VAPE] = { [DB8500_REGULATOR_VAPE] = {
.desc = { .desc = {
.name = "db8500-vape", .name = "db8500-vape",
...@@ -492,11 +492,9 @@ static int __devinit db8500_regulator_probe(struct platform_device *pdev) ...@@ -492,11 +492,9 @@ static int __devinit db8500_regulator_probe(struct platform_device *pdev)
info->desc.name, err); info->desc.name, err);
/* if failing, unregister all earlier regulators */ /* if failing, unregister all earlier regulators */
i--; while (--i >= 0) {
while (i >= 0) {
info = &db8500_regulator_info[i]; info = &db8500_regulator_info[i];
regulator_unregister(info->rdev); regulator_unregister(info->rdev);
i--;
} }
return err; return err;
} }
...@@ -536,13 +534,7 @@ static struct platform_driver db8500_regulator_driver = { ...@@ -536,13 +534,7 @@ static struct platform_driver db8500_regulator_driver = {
static int __init db8500_regulator_init(void) static int __init db8500_regulator_init(void)
{ {
int ret; return platform_driver_register(&db8500_regulator_driver);
ret = platform_driver_register(&db8500_regulator_driver);
if (ret < 0)
return -ENODEV;
return 0;
} }
static void __exit db8500_regulator_exit(void) static void __exit db8500_regulator_exit(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册