summaryrefslogtreecommitdiffstats
path: root/drivers/pnp/resource.c
diff options
context:
space:
mode:
authorLiu ShuoX <shuox.liu@intel.com>2013-07-16 16:23:44 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-07-18 01:38:59 +0200
commit3c0fc0710185e618a661528eed2183102e25c2f8 (patch)
treedbe6d7e2df3c9986d6175771d0520d6aacaecd8c /drivers/pnp/resource.c
parentd19f503e22316a84c39bc19445e0e4fdd49b3532 (diff)
downloadlinux-3c0fc0710185e618a661528eed2183102e25c2f8.tar.bz2
PNP / ACPI: avoid garbage in resource name
Set temporary variable as 0 to avoid garbage string output from /proc/iomem after register resources and reset to PNP dev name later. Signed-off-by: Liu ShuoX <shuox.liu@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pnp/resource.c')
-rw-r--r--drivers/pnp/resource.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c
index 3e6db1c1dc29..d95e101ffb43 100644
--- a/drivers/pnp/resource.c
+++ b/drivers/pnp/resource.c
@@ -515,6 +515,7 @@ struct pnp_resource *pnp_add_resource(struct pnp_dev *dev,
}
pnp_res->res = *res;
+ pnp_res->res.name = dev->name;
dev_dbg(&dev->dev, "%pR\n", res);
return pnp_res;
}