drm: struct device - replace bus_id with dev_name(), dev_set_name()
Cc: airlied@linux.ie Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
This commit is contained in:
parent
c23135573f
commit
2ead054cd2
1 changed files with 2 additions and 2 deletions
|
@ -359,8 +359,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) {
|
||||
|
|
Loading…
Reference in a new issue