aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-05-03 09:54:54 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-05-11 12:31:20 -0400
commitedf600dac65eecb6c8bcf21fa986db30ee21a2ac (patch)
treeed9c19dc1e661351c438eaf8d3ff1ae4ce93f72f /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentb1c8a81fdd346274e3c38909740eec7182ef8f8a (diff)
drm/amd: cleanup remaining spaces and tabs v2
This is the result of running the following commands: find drivers/gpu/drm/amd/ -name "*.h" -exec sed -i 's/[ \t]\+$//' {} \; find drivers/gpu/drm/amd/ -name "*.c" -exec sed -i 's/[ \t]\+$//' {} \; find drivers/gpu/drm/amd/ -name "*.h" -exec sed -i 's/ \+\t/\t/' {} \; find drivers/gpu/drm/amd/ -name "*.c" -exec sed -i 's/ \+\t/\t/' {} \; v2: drop changes to DAL and internal headers Signed-off-by: Christian König <christian.koenig@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/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 778330529ff5..0d44e6a41eda 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -348,7 +348,7 @@ static int amdgpu_doorbell_init(struct amdgpu_device *adev)
348 adev->doorbell.base = pci_resource_start(adev->pdev, 2); 348 adev->doorbell.base = pci_resource_start(adev->pdev, 2);
349 adev->doorbell.size = pci_resource_len(adev->pdev, 2); 349 adev->doorbell.size = pci_resource_len(adev->pdev, 2);
350 350
351 adev->doorbell.num_doorbells = min_t(u32, adev->doorbell.size / sizeof(u32), 351 adev->doorbell.num_doorbells = min_t(u32, adev->doorbell.size / sizeof(u32),
352 AMDGPU_DOORBELL_MAX_ASSIGNMENT+1); 352 AMDGPU_DOORBELL_MAX_ASSIGNMENT+1);
353 if (adev->doorbell.num_doorbells == 0) 353 if (adev->doorbell.num_doorbells == 0)
354 return -EINVAL; 354 return -EINVAL;