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
@@ -51,7 +51,7 @@ struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev)
|
||||
|
||||
/* this should never happen but if it does we'll try to continue */
|
||||
if (dev->independent)
|
||||
pnp_err("independent resource already registered");
|
||||
dev_err(&dev->dev, "independent resource already registered\n");
|
||||
dev->independent = option;
|
||||
return option;
|
||||
}
|
||||
|
Reference in New Issue
Block a user