diff options
Diffstat (limited to 'drivers/gpu/drm/drm_sysfs.c')
-rw-r--r-- | drivers/gpu/drm/drm_sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index 5aa6780652aa..186d08159d48 100644 --- a/drivers/gpu/drm/drm_sysfs.c +++ b/drivers/gpu/drm/drm_sysfs.c | |||
@@ -359,8 +359,8 @@ int drm_sysfs_connector_add(struct drm_connector *connector) | |||
359 | DRM_DEBUG("adding \"%s\" to sysfs\n", | 359 | DRM_DEBUG("adding \"%s\" to sysfs\n", |
360 | drm_get_connector_name(connector)); | 360 | drm_get_connector_name(connector)); |
361 | 361 | ||
362 | snprintf(connector->kdev.bus_id, BUS_ID_SIZE, "card%d-%s", | 362 | dev_set_name(&connector->kdev, "card%d-%s", |
363 | dev->primary->index, drm_get_connector_name(connector)); | 363 | dev->primary->index, drm_get_connector_name(connector)); |
364 | ret = device_register(&connector->kdev); | 364 | ret = device_register(&connector->kdev); |
365 | 365 | ||
366 | if (ret) { | 366 | if (ret) { |