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:
parent
739cf3a269
commit
8f4bbd9f59
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue