]> git.baikalelectronics.ru Git - kernel.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)
commiteaec9ff1296b0c45068a31e34a8e0626435dcde7
treee88df4f96c191f88c446661e3c240816e751c096
parentbaebb7c8845be530297ec369e81066e00b21274d
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