summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/radeon_ib.c
diff options
context:
space:
mode:
authorWu Hoi Pok <wuhoipok@gmail.com>2024-06-30 12:59:21 -0400
committerAlex Deucher <alexander.deucher@amd.com>2024-07-23 17:31:59 -0400
commitfb1b5e1dd53fc834e12f69749cbc8484382599c4 (patch)
treed633ed0b7cfa8faa12c726c607c3c31d837f23ca /drivers/gpu/drm/radeon/radeon_ib.c
parenta6e23bec8ed184ed2a11080b28cdbd7a3024f0c0 (diff)
downloadlinux-fb1b5e1dd53fc834e12f69749cbc8484382599c4.tar.gz
linux-fb1b5e1dd53fc834e12f69749cbc8484382599c4.tar.bz2
linux-fb1b5e1dd53fc834e12f69749cbc8484382599c4.zip
drm/radeon: change rdev->ddev to rdev_to_drm(rdev)
This patch changes the way "drm_device" is accessed. It uses "rdev_to_drm(rdev)" instead of accessing the struct member directly. Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Tested-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Wu Hoi Pok <wuhoipok@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_ib.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_ib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ib.c b/drivers/gpu/drm/radeon/radeon_ib.c
index 63d914f3414d..1aa41cc3f991 100644
--- a/drivers/gpu/drm/radeon/radeon_ib.c
+++ b/drivers/gpu/drm/radeon/radeon_ib.c
@@ -309,7 +309,7 @@ DEFINE_SHOW_ATTRIBUTE(radeon_debugfs_sa_info);
static void radeon_debugfs_sa_init(struct radeon_device *rdev)
{
#if defined(CONFIG_DEBUG_FS)
- struct dentry *root = rdev->ddev->primary->debugfs_root;
+ struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
debugfs_create_file("radeon_sa_info", 0444, root, rdev,
&radeon_debugfs_sa_info_fops);