diff options
Diffstat (limited to 'drivers/pnp')
-rw-r--r-- | drivers/pnp/support.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/pnp/support.c b/drivers/pnp/support.c index 1566e4a73849..0ad42db94884 100644 --- a/drivers/pnp/support.c +++ b/drivers/pnp/support.c | |||
@@ -79,7 +79,12 @@ void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc) | |||
79 | struct pnp_resource *pnp_res; | 79 | struct pnp_resource *pnp_res; |
80 | struct resource *res; | 80 | struct resource *res; |
81 | 81 | ||
82 | dev_dbg(&dev->dev, "current resources: %s\n", desc); | 82 | if (list_empty(&dev->resources)) { |
83 | dev_dbg(&dev->dev, "%s: no current resources\n", desc); | ||
84 | return; | ||
85 | } | ||
86 | |||
87 | dev_dbg(&dev->dev, "%s: current resources:\n", desc); | ||
83 | list_for_each_entry(pnp_res, &dev->resources, list) { | 88 | list_for_each_entry(pnp_res, &dev->resources, list) { |
84 | res = &pnp_res->res; | 89 | res = &pnp_res->res; |
85 | 90 | ||