diff options
author | codeworkx <codeworkx@cyanogenmod.com> | 2012-09-25 10:50:33 +0200 |
---|---|---|
committer | codeworkx <codeworkx@cyanogenmod.com> | 2012-09-25 10:50:33 +0200 |
commit | 28fac0f7d9ade67843d8ddc8ab5772e67926cac7 (patch) | |
tree | a3e83de70462a107e7aa46e21c10acca7cdb334d /drivers/regulator | |
parent | 7bc6b9c5a821daf8079eee0546eb6e14b2ecd1f1 (diff) | |
download | kernel_samsung_smdk4412-28fac0f7d9ade67843d8ddc8ab5772e67926cac7.zip kernel_samsung_smdk4412-28fac0f7d9ade67843d8ddc8ab5772e67926cac7.tar.gz kernel_samsung_smdk4412-28fac0f7d9ade67843d8ddc8ab5772e67926cac7.tar.bz2 |
max77693: fix debugging
Change-Id: Iea6300c6b236127a239eb02148b4dbcae0ccaef6
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/max77693.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c index 5293ea0..63a263cc 100644 --- a/drivers/regulator/max77693.c +++ b/drivers/regulator/max77693.c @@ -460,20 +460,20 @@ static __devinit int max77693_pmic_probe(struct platform_device *pdev) int i, ret, size; dev_info(&pdev->dev, "%s\n", __func__); if (!pdata) { - pr_info("[%s:%d] !pdata\n", __FILE__, __LINE__); + pr_err("[%s:%d] !pdata\n", __FILE__, __LINE__); dev_err(pdev->dev.parent, "No platform init data supplied.\n"); return -ENODEV; } max77693 = kzalloc(sizeof(struct max77693_data), GFP_KERNEL); if (!max77693) { - pr_info("[%s:%d] if (!max77693)\n", __FILE__, __LINE__); + pr_err("[%s:%d] if (!max77693)\n", __FILE__, __LINE__); return -ENOMEM; } size = sizeof(struct regulator_dev *) * pdata->num_regulators; max77693->rdev = kzalloc(size, GFP_KERNEL); if (!max77693->rdev) { - pr_info("[%s:%d] if (!max77693->rdev)\n", __FILE__, __LINE__); + pr_err("[%s:%d] if (!max77693->rdev)\n", __FILE__, __LINE__); kfree(max77693); return -ENOMEM; } @@ -484,13 +484,13 @@ static __devinit int max77693_pmic_probe(struct platform_device *pdev) max77693->num_regulators = pdata->num_regulators; platform_set_drvdata(pdev, max77693); i2c = max77693->iodev->i2c; - pr_info("[%s:%d] pdata->num_regulators:%d\n", __FILE__, __LINE__, + pr_debug("[%s:%d] pdata->num_regulators:%d\n", __FILE__, __LINE__, pdata->num_regulators); for (i = 0; i < pdata->num_regulators; i++) { const struct voltage_map_desc *desc; int id = pdata->regulators[i].id; - pr_info("[%s:%d] for in pdata->num_regulators:%d\n", __FILE__, + pr_debug("[%s:%d] for in pdata->num_regulators:%d\n", __FILE__, __LINE__, pdata->num_regulators); desc = reg_voltage_map[id]; if (id == MAX77693_ESAFEOUT1 || id == MAX77693_ESAFEOUT2) @@ -510,12 +510,12 @@ static __devinit int max77693_pmic_probe(struct platform_device *pdev) return 0; err: - pr_info("[%s:%d] err:\n", __FILE__, __LINE__); + pr_err("[%s:%d] err:\n", __FILE__, __LINE__); for (i = 0; i < max77693->num_regulators; i++) if (rdev[i]) regulator_unregister(rdev[i]); err_alloc: - pr_info("[%s:%d] err_alloc\n", __FILE__, __LINE__); + pr_err("[%s:%d] err_alloc\n", __FILE__, __LINE__); kfree(max77693->rdev); kfree(max77693); |