diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-30 01:36:48 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 10:44:31 -0800 |
commit | 1e0b2cf933ebf32494eba3f668859ba57f06a951 (patch) | |
tree | b8d9a3b41a452fb922cd3425e67ea8278c128c70 /drivers/base/attribute_container.c | |
parent | 210272a28465a7a31bcd580d2f9529f924965aa5 (diff) | |
download | linux-stable-1e0b2cf933ebf32494eba3f668859ba57f06a951.tar.gz linux-stable-1e0b2cf933ebf32494eba3f668859ba57f06a951.tar.bz2 linux-stable-1e0b2cf933ebf32494eba3f668859ba57f06a951.zip |
driver core: struct device - replace bus_id with dev_name(), dev_set_name()
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/attribute_container.c')
-rw-r--r-- | drivers/base/attribute_container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c index f57652db0a2a..b9cda053d3c0 100644 --- a/drivers/base/attribute_container.c +++ b/drivers/base/attribute_container.c @@ -167,7 +167,7 @@ attribute_container_add_device(struct device *dev, ic->classdev.parent = get_device(dev); ic->classdev.class = cont->class; cont->class->dev_release = attribute_container_release; - strcpy(ic->classdev.bus_id, dev->bus_id); + dev_set_name(&ic->classdev, dev_name(dev)); if (fn) fn(cont, dev, &ic->classdev); else |