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>
This commit is contained in:

committed by
Linus Torvalds

parent
5bfc43a0b6
commit
a05d078169
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user