diff options
author | Nirmoy Das <nirmoy.das@amd.com> | 2020-11-20 17:00:21 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-11-24 12:06:20 -0500 |
commit | 7e7726ec1f022e73034ef6d1fd75e394d7e03922 (patch) | |
tree | 4ae5af5a274b441a600c33138800dfcada90910e /drivers/gpu/drm/radeon/radeon_device.c | |
parent | 7dc7b65a1f3f9f0f24ce5cc52811cfbad4c6b9d3 (diff) | |
download | linux-7e7726ec1f022e73034ef6d1fd75e394d7e03922.tar.gz linux-7e7726ec1f022e73034ef6d1fd75e394d7e03922.tar.bz2 linux-7e7726ec1f022e73034ef6d1fd75e394d7e03922.zip |
drm/radeon: use generic DMA API
Use generic DMA api instead of bus-specific API.
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_device.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 7f384ffe848a..a5588b0a454c 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -784,9 +784,9 @@ int radeon_dummy_page_init(struct radeon_device *rdev) rdev->dummy_page.page = alloc_page(GFP_DMA32 | GFP_KERNEL | __GFP_ZERO); if (rdev->dummy_page.page == NULL) return -ENOMEM; - rdev->dummy_page.addr = pci_map_page(rdev->pdev, rdev->dummy_page.page, + rdev->dummy_page.addr = dma_map_page(&rdev->pdev->dev, rdev->dummy_page.page, 0, PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); - if (pci_dma_mapping_error(rdev->pdev, rdev->dummy_page.addr)) { + if (dma_mapping_error(&rdev->pdev->dev, rdev->dummy_page.addr)) { dev_err(&rdev->pdev->dev, "Failed to DMA MAP the dummy page\n"); __free_page(rdev->dummy_page.page); rdev->dummy_page.page = NULL; |