[PATCH 3/5] drm/nouveau: Use pci_get_base_class() to reduce duplicated code