diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2007-10-17 02:31:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:43:04 -0400 |
commit | a05d0781695566296e74a3670dd5bbd3daf24ae2 (patch) | |
tree | 56a474e1011187cd1cdee542dcfa253d64e4a53c /drivers/pnp/card.c | |
parent | 5bfc43a0b65a11ca1e9edfa0c2bd34ce43da0346 (diff) |
PNP: use dev_info(), dev_err(), etc in core
If we have the struct pnp_dev available, we can use dev_info(), dev_err(),
etc., to give a little more information and consistency.
[akpm@linux-foundation.org: fix warning]
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Adam Belay <ambx1@neo.rr.com>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pnp/card.c')
-rw-r--r-- | drivers/pnp/card.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pnp/card.c b/drivers/pnp/card.c index 3b48aef8f4eb..da1c9909eb44 100644 --- a/drivers/pnp/card.c +++ b/drivers/pnp/card.c | |||
@@ -198,8 +198,7 @@ int pnp_add_card(struct pnp_card *card) | |||
198 | card->dev.release = &pnp_release_card; | 198 | card->dev.release = &pnp_release_card; |
199 | error = device_register(&card->dev); | 199 | error = device_register(&card->dev); |
200 | if (error) { | 200 | if (error) { |
201 | pnp_err("sysfs failure, card '%s' will be unavailable", | 201 | dev_err(&card->dev, "could not register (err=%d)\n", error); |
202 | card->dev.bus_id); | ||
203 | return error; | 202 | return error; |
204 | } | 203 | } |
205 | 204 | ||