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 <nirmoy.das@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
This commit is contained in:
parent
f02abeb077
commit
93def70cf8
|
@ -119,7 +119,7 @@ int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags)
|
|||
#endif
|
||||
|
||||
if (pci_find_capability(pdev, PCI_CAP_ID_AGP))
|
||||
rdev->agp = radeon_agp_head_init(rdev->ddev);
|
||||
rdev->agp = radeon_agp_head_init(dev);
|
||||
if (rdev->agp) {
|
||||
rdev->agp->agp_mtrr = arch_phys_wc_add(
|
||||
rdev->agp->agp_info.aper_base,
|
||||
|
|
Loading…
Reference in New Issue