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/interface.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/interface.c')
-rw-r--r-- | drivers/pnp/interface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pnp/interface.c b/drivers/pnp/interface.c index e0ee28a88da3..31548044fdde 100644 --- a/drivers/pnp/interface.c +++ b/drivers/pnp/interface.c | |||
@@ -327,8 +327,7 @@ pnp_set_current_resources(struct device *dmdev, struct device_attribute *attr, | |||
327 | 327 | ||
328 | if (dev->status & PNP_ATTACHED) { | 328 | if (dev->status & PNP_ATTACHED) { |
329 | retval = -EBUSY; | 329 | retval = -EBUSY; |
330 | pnp_info("Device %s cannot be configured because it is in use.", | 330 | dev_info(&dev->dev, "in use; can't configure\n"); |
331 | dev->dev.bus_id); | ||
332 | goto done; | 331 | goto done; |
333 | } | 332 | } |
334 | 333 | ||