Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: fix coding style and printing in amdgpu_doorbell_init

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>

authored by

Christian König and committed by
Alex Deucher
8972e5d2 ee73164a

+4 -5
+4 -5
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 422 422 if (adev->doorbell.num_doorbells == 0) 423 423 return -EINVAL; 424 424 425 - adev->doorbell.ptr = ioremap(adev->doorbell.base, adev->doorbell.num_doorbells * sizeof(u32)); 426 - if (adev->doorbell.ptr == NULL) { 425 + adev->doorbell.ptr = ioremap(adev->doorbell.base, 426 + adev->doorbell.num_doorbells * 427 + sizeof(u32)); 428 + if (adev->doorbell.ptr == NULL) 427 429 return -ENOMEM; 428 - } 429 - DRM_INFO("doorbell mmio base: 0x%08X\n", (uint32_t)adev->doorbell.base); 430 - DRM_INFO("doorbell mmio size: %u\n", (unsigned)adev->doorbell.size); 431 430 432 431 return 0; 433 432 }