[PATCH 4/5] drm/amdgpu: Use pci_get_base_class() to reduce duplicated code