summaryrefslogtreecommitdiff
path: root/drivers/pnp/card.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pnp/card.c')
-rw-r--r--drivers/pnp/card.c3
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)
card->dev.release = &pnp_release_card;
error = device_register(&card->dev);
if (error) {
- pnp_err("sysfs failure, card '%s' will be unavailable",
- card->dev.bus_id);
+ dev_err(&card->dev, "could not register (err=%d)\n", error);
return error;
}