public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] atmel-ssc: fix misuse of dev_dbg when requested ssc instance is not found
@ 2009-01-19 12:57 Hans-Christian Egtvedt
  2009-01-29 16:46 ` Hans-Christian Egtvedt
  2009-01-30  9:26 ` Haavard Skinnemoen
  0 siblings, 2 replies; 9+ messages in thread
From: Hans-Christian Egtvedt @ 2009-01-19 12:57 UTC (permalink / raw)
  To: linux-kernel; +Cc: Hans-Christian Egtvedt

This patch replaces the dev_dbg(...) with a pr_err since the ssc pointer
is not valid when the id is not found in the list.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
---
 drivers/misc/atmel-ssc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c
index 6b35874..6cff1bb 100644
--- a/drivers/misc/atmel-ssc.c
+++ b/drivers/misc/atmel-ssc.c
@@ -35,7 +35,7 @@ struct ssc_device *ssc_request(unsigned int ssc_num)
 
 	if (!ssc_valid) {
 		spin_unlock(&user_lock);
-		dev_dbg(&ssc->pdev->dev, "could not find requested device\n");
+		pr_err("ssc: ssc%d platform device is missing\n", ssc_num);
 		return ERR_PTR(-ENODEV);
 	}
 
-- 
1.5.6.3


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

end of thread, other threads:[~2009-01-30 13:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19 12:57 [PATCH 1/1] atmel-ssc: fix misuse of dev_dbg when requested ssc instance is not found Hans-Christian Egtvedt
2009-01-29 16:46 ` Hans-Christian Egtvedt
2009-01-29 23:50   ` Andrew Morton
2009-01-30  8:20     ` Hans-Christian Egtvedt
2009-01-30  8:35       ` Andrew Morton
2009-01-30  9:26 ` Haavard Skinnemoen
2009-01-30  9:36   ` Andrew Morton
2009-01-30  9:50     ` Hans-Christian Egtvedt
2009-01-30 12:54       ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox