]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/nouveau: Do not try to disable PCI device on Tegra
authorThierry Reding <treding@nvidia.com>
Mon, 9 Dec 2019 12:00:00 +0000 (13:00 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 15 Jan 2020 00:49:58 +0000 (10:49 +1000)
commitf1331ea8ee0a7fe9a832a403587528adddd03561
treee88df4f96c191f88c446661e3c240816e751c096
parent0ac7facb7071836154687a228eaead3fc82297c1
drm/nouveau: Do not try to disable PCI device on Tegra

When Nouveau is instantiated on top of a platform device, the dev->pdev
field will be NULL and calling pci_disable_device() will crash. Move the
PCI disabling code to the PCI specific driver removal code.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drm.c