]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: Start using new drm_dev initialization helpers
authorLyude Paul <lyude@redhat.com>
Thu, 23 Aug 2018 01:40:07 +0000 (21:40 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 10 Oct 2018 23:54:10 +0000 (09:54 +1000)
commit0684660d17c502170945a962af759bef124b5167
tree77565e8130533e671db866ad4c8c9c0a4efdcca5
parentc44a3d38f1e52bb7a63506a010a6c4766a949c6c
drm/nouveau: Start using new drm_dev initialization helpers

Per the documentation in drm_get_pci_dev(), this function is deprecated
and shouldn't be used anymore. As it turns out, we're going to need to
stop using drm_get_pci_dev() anyway in order to allow us to turn off the
card before full system shutdowns, otherwise we'll hit race conditions
with userspace while trying to tear down the card on shutdown.

So, start using drm_dev_get() and drm_dev_put(), and just turn our
load/unload callbacks into open coded init/fini() functions.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drm.c