gpu: struct device - replace bus_id with dev_name(), dev_set_name()

CC: Dave Airlie <airlied@redhat.com>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Kay Sievers 2009-01-06 10:44:41 -08:00 committed by Greg Kroah-Hartman
parent 739cf3a269
commit 8f4bbd9f59

View file

@ -488,7 +488,7 @@ int drm_sysfs_device_add(struct drm_minor *minor)
else else
minor_str = "card%d"; minor_str = "card%d";
snprintf(minor->kdev.bus_id, BUS_ID_SIZE, minor_str, minor->index); dev_set_name(&minor->kdev, minor_str, minor->index);
err = device_register(&minor->kdev); err = device_register(&minor->kdev);
if (err) { if (err) {