drm/amdgpu: fix coding style and printing in amdgpu_doorbell_init
authorChristian König <christian.koenig@amd.com>
Mon, 6 Mar 2017 12:34:57 +0000 (13:34 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Apr 2017 21:32:41 +0000 (17:32 -0400)
Based on commit "drm/radeon: remove useless and potentially wrong message".

The size of the info printing is incorrect and the PCI subsystems prints
the same info on boot anyway.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index fbda93a8764844ea4941ed910d5721120ae9c7de..8aad6f4a5241158543091d24906fa6dabad24b98 100644 (file)
@@ -422,12 +422,11 @@ static int amdgpu_doorbell_init(struct amdgpu_device *adev)
        if (adev->doorbell.num_doorbells == 0)
                return -EINVAL;
 
-       adev->doorbell.ptr = ioremap(adev->doorbell.base, adev->doorbell.num_doorbells * sizeof(u32));
-       if (adev->doorbell.ptr == NULL) {
+       adev->doorbell.ptr = ioremap(adev->doorbell.base,
+                                    adev->doorbell.num_doorbells *
+                                    sizeof(u32));
+       if (adev->doorbell.ptr == NULL)
                return -ENOMEM;
-       }
-       DRM_INFO("doorbell mmio base: 0x%08X\n", (uint32_t)adev->doorbell.base);
-       DRM_INFO("doorbell mmio size: %u\n", (unsigned)adev->doorbell.size);
 
        return 0;
 }