diff options
author | Mark Brown <broonie@sirena.org.uk> | 2013-04-27 21:13:44 -0400 |
---|---|---|
committer | Mark Brown <broonie@sirena.org.uk> | 2013-04-27 21:13:44 -0400 |
commit | 95328a190e7374ea05d6ae9370095dee6d852c17 (patch) | |
tree | d56848560a16b258a0fcb7e0800a0ef3d2726604 /drivers/regulator | |
parent | 9eaec296d064846dbc21fa020f5e16e53bdcc5a3 (diff) | |
parent | 9df19a5597f70e8fd15c065035f5b6362fec91a5 (diff) |
Merge remote-tracking branch 'regulator/topic/max8998' into v3.9-rc8
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/max8998.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/regulator/max8998.c b/drivers/regulator/max8998.c index b588f07c7cad..a57a1b15cdba 100644 --- a/drivers/regulator/max8998.c +++ b/drivers/regulator/max8998.c | |||
@@ -665,14 +665,16 @@ static int max8998_pmic_probe(struct platform_device *pdev) | |||
665 | gpio_is_valid(pdata->buck1_set2)) { | 665 | gpio_is_valid(pdata->buck1_set2)) { |
666 | /* Check if SET1 is not equal to 0 */ | 666 | /* Check if SET1 is not equal to 0 */ |
667 | if (!pdata->buck1_set1) { | 667 | if (!pdata->buck1_set1) { |
668 | printk(KERN_ERR "MAX8998 SET1 GPIO defined as 0 !\n"); | 668 | dev_err(&pdev->dev, |
669 | "MAX8998 SET1 GPIO defined as 0 !\n"); | ||
669 | WARN_ON(!pdata->buck1_set1); | 670 | WARN_ON(!pdata->buck1_set1); |
670 | ret = -EIO; | 671 | ret = -EIO; |
671 | goto err_out; | 672 | goto err_out; |
672 | } | 673 | } |
673 | /* Check if SET2 is not equal to 0 */ | 674 | /* Check if SET2 is not equal to 0 */ |
674 | if (!pdata->buck1_set2) { | 675 | if (!pdata->buck1_set2) { |
675 | printk(KERN_ERR "MAX8998 SET2 GPIO defined as 0 !\n"); | 676 | dev_err(&pdev->dev, |
677 | "MAX8998 SET2 GPIO defined as 0 !\n"); | ||
676 | WARN_ON(!pdata->buck1_set2); | 678 | WARN_ON(!pdata->buck1_set2); |
677 | ret = -EIO; | 679 | ret = -EIO; |
678 | goto err_out; | 680 | goto err_out; |
@@ -738,7 +740,8 @@ static int max8998_pmic_probe(struct platform_device *pdev) | |||
738 | if (gpio_is_valid(pdata->buck2_set3)) { | 740 | if (gpio_is_valid(pdata->buck2_set3)) { |
739 | /* Check if SET3 is not equal to 0 */ | 741 | /* Check if SET3 is not equal to 0 */ |
740 | if (!pdata->buck2_set3) { | 742 | if (!pdata->buck2_set3) { |
741 | printk(KERN_ERR "MAX8998 SET3 GPIO defined as 0 !\n"); | 743 | dev_err(&pdev->dev, |
744 | "MAX8998 SET3 GPIO defined as 0 !\n"); | ||
742 | WARN_ON(!pdata->buck2_set3); | 745 | WARN_ON(!pdata->buck2_set3); |
743 | ret = -EIO; | 746 | ret = -EIO; |
744 | goto err_out; | 747 | goto err_out; |