All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] extcon: max8997: use dev_err() instead of pr_err()
@ 2013-03-19  5:30 Jingoo Han
  2013-03-19  5:31 ` [PATCH v2 2/2] extcon: max8997: add missing const Jingoo Han
  2013-03-19  9:36 ` [PATCH v2 1/2] extcon: max8997: use dev_err() instead of pr_err() Chanwoo Choi
  0 siblings, 2 replies; 5+ messages in thread
From: Jingoo Han @ 2013-03-19  5:30 UTC (permalink / raw)
  To: 'MyungJoo Ham'
  Cc: 'Chanwoo Choi', linux-kernel, 'Jingoo Han'

dev_err() is more preferred than pr_err().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
No Changes since v1:

 drivers/extcon/extcon-max8997.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c
index 69641bc..20772ad 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)
-- 
1.7.2.5



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-19 10:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-19  5:30 [PATCH v2 1/2] extcon: max8997: use dev_err() instead of pr_err() Jingoo Han
2013-03-19  5:31 ` [PATCH v2 2/2] extcon: max8997: add missing const Jingoo Han
2013-03-19  9:45   ` Chanwoo Choi
2013-03-19 10:29     ` Jingoo Han
2013-03-19  9:36 ` [PATCH v2 1/2] extcon: max8997: use dev_err() instead of pr_err() Chanwoo Choi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.