From 6f820954926ce222c62591300cf548a7ef6626b4 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Sun, 26 Oct 2014 14:38:55 -0400 Subject: [PATCH] drm/radeon: set device name Set the device name so the device name shows up in sysfs. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85476 Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 55065d8..549382a 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -1241,6 +1241,7 @@ int radeon_device_init(struct radeon_device *rdev, rdev->shutdown = false; rdev->dev = &pdev->dev; + dev_set_name(&pdev->dev, "radeon%d", ddev->primary->index); rdev->ddev = ddev; rdev->pdev = pdev; rdev->flags = flags; -- 1.8.3.1