Skip to content

Commit 93def70

Browse files
Nirmoy Dasalexdeucher
authored andcommitted
drm/radeon: pass drm dev radeon_agp_head_init directly
Pass drm dev directly as rdev->ddev gets initialized later on at radeon_device_init(). Bug: https://bugzilla.kernel.org/show_bug.cgi?id=214375 Signed-off-by: Nirmoy Das <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent f02abeb commit 93def70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/radeon/radeon_kms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags)
119119
#endif
120120

121121
if (pci_find_capability(pdev, PCI_CAP_ID_AGP))
122-
rdev->agp = radeon_agp_head_init(rdev->ddev);
122+
rdev->agp = radeon_agp_head_init(dev);
123123
if (rdev->agp) {
124124
rdev->agp->agp_mtrr = arch_phys_wc_add(
125125
rdev->agp->agp_info.aper_base,

0 commit comments

Comments
 (0)