aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c
index 65d72d094c81..5aa6780652aa 100644
--- a/drivers/gpu/drm/drm_sysfs.c
+++ b/drivers/gpu/drm/drm_sysfs.c
@@ -488,7 +488,7 @@ int drm_sysfs_device_add(struct drm_minor *minor)
488 else 488 else
489 minor_str = "card%d"; 489 minor_str = "card%d";
490 490
491 snprintf(minor->kdev.bus_id, BUS_ID_SIZE, minor_str, minor->index); 491 dev_set_name(&minor->kdev, minor_str, minor->index);
492 492
493 err = device_register(&minor->kdev); 493 err = device_register(&minor->kdev);
494 if (err) { 494 if (err) {