bq24022: Use dev_err instead of dev_dbg for error messages

A patch from »bq24022: Add support for bq2407x family« in state Obsolete for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Mon, 29 Aug 2011 11:50:28 +0200

Commit-Message

This makes error messages visible to the user, so he/she can eventually fix them. Signed-off-by: Heiko Stuebner <heiko@...> Acked-by: Mark Brown <broonie@...>

Patch-Comment

drivers/regulator/bq24022.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)

Statistics

  • 3 lines added
  • 3 lines removed

Changes

------------------------- drivers/regulator/bq24022.c --------------------------
index 56627d7..7bd906c 100644
@@ -93,13 +93,13 @@ static int __init bq24022_probe(struct platform_device *pdev)
ret = gpio_request(pdata->gpio_nce, "ncharge_en");
if (ret) {
- dev_dbg(&pdev->dev, "couldn't request nCE GPIO: %d\n",
+ dev_err(&pdev->dev, "couldn't request nCE GPIO: %d\n",
pdata->gpio_nce);
goto err_ce;
}
ret = gpio_request(pdata->gpio_iset2, "charge_mode");
if (ret) {
- dev_dbg(&pdev->dev, "couldn't request ISET2 GPIO: %d\n",
+ dev_err(&pdev->dev, "couldn't request ISET2 GPIO: %d\n",
pdata->gpio_iset2);
goto err_iset2;
}
@@ -119,7 +119,7 @@ static int __init bq24022_probe(struct platform_device *pdev)
bq24022 = regulator_register(&bq24022_desc, &pdev->dev,
pdata->init_data, pdata);
if (IS_ERR(bq24022)) {
- dev_dbg(&pdev->dev, "couldn't register regulator\n");
+ dev_err(&pdev->dev, "couldn't register regulator\n");
ret = PTR_ERR(bq24022);
goto err_reg;
}
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...