Thread (21 messages) 21 messages, 1 author, 2012-02-03

[PATCH 19/20] ARM: sa1111: use dev_err() rather than printk()

flat view
STALE5370d

From: Russell King - ARM Linux <hidden>
Date: 2012-02-03 20:00:57
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

Use dev_err() to report device specific errors rather than printk().

Signed-off-by: Russell King <redacted>
---
 arch/arm/common/sa1111.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c
index 8d86338..9173d11 100644
--- a/arch/arm/common/sa1111.c
+++ b/arch/arm/common/sa1111.c
@@ -655,7 +655,7 @@ sa1111_init_one_child(struct sa1111 *sachip, struct resource *parent,
 
 	ret = request_resource(parent, &dev->res);
 	if (ret) {
-		printk("SA1111: failed to allocate resource for %s\n",
+		dev_err(sachip->dev, "failed to allocate resource for %s\n",
 			dev->res.name);
 		goto err_resource;
 	}
-- 
1.7.4.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help