]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/base/attribute_container.c
Merge branch 'fix/hda' into topic/hda
[linux-2.6-omap-h63xx.git] / drivers / base / attribute_container.c
index f57652db0a2a1261ef79e0c59326be6163bcaa1c..b9cda053d3c0c20182a264c6da5424fe872c6e5e 100644 (file)
@@ -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