From: Jingoo Han Date: Mon, 8 Apr 2013 00:11:06 +0000 (+0900) Subject: extcon: max8997: use dev_err() instead of pr_err() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6ed28105c07e0e03bf5f5a99380b726fc4de6e93;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git extcon: max8997: use dev_err() instead of pr_err() dev_err() is more preferred than pr_err(). Signed-off-by: Jingoo Han Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham --- diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c index 69641bcae325..20772ad4adc0 100644 --- a/drivers/extcon/extcon-max8997.c +++ b/drivers/extcon/extcon-max8997.c @@ -646,7 +646,7 @@ static void max8997_muic_detect_cable_wq(struct work_struct *work) ret = max8997_muic_detect_dev(info); if (ret < 0) - pr_err("failed to detect cable type\n"); + dev_err(info->dev, "failed to detect cable type\n"); } static int max8997_muic_probe(struct platform_device *pdev)