drm: merge Linux master into HEAD
[linux-2.6.git] / drivers / gpu / drm / drm_sysfs.c
index f7510a8f0eb9bfdfaffc91f9b3b590ee73869d6d..5de573a981cb19d5da7789270bfd0b05bdf8006f 100644 (file)
@@ -349,8 +349,8 @@ int drm_sysfs_connector_add(struct drm_connector *connector)
        DRM_DEBUG("adding \"%s\" to sysfs\n",
                  drm_get_connector_name(connector));
 
-       snprintf(connector->kdev.bus_id, BUS_ID_SIZE, "card%d-%s",
-                dev->primary->index, drm_get_connector_name(connector));
+       dev_set_name(&connector->kdev, "card%d-%s",
+                    dev->primary->index, drm_get_connector_name(connector));
        ret = device_register(&connector->kdev);
 
        if (ret) {