]> Git Repo - linux.git/commit
drm/vboxvideo: use managed pci functions
authorDaniel Vetter <[email protected]>
Wed, 15 Apr 2020 07:39:40 +0000 (09:39 +0200)
committerDaniel Vetter <[email protected]>
Tue, 28 Apr 2020 13:08:01 +0000 (15:08 +0200)
commit8558de401b5fbbfb1df96d6986bba3c79cd47401
tree9b4b8ac4dfbca8377e9d0252580dcc9d9527882f
parentdd9a68935f93e95a9f9f231e4b2853b897162c85
drm/vboxvideo: use managed pci functions

Allows us to drop the cleanup code on the floor.

Sam noticed in his review:
> With this change we avoid calling pci_disable_device()
> twise in case vbox_mm_init() fails.
> Once in vbox_hw_fini() and once in the error path.

v2: Include Sam's review remarks

v3: Fix typo in commit summary (Thomas Zimmermann)

Acked-by: Sam Ravnborg <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Cc: Hans de Goede <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/vboxvideo/vbox_drv.c
drivers/gpu/drm/vboxvideo/vbox_main.c
This page took 0.053865 seconds and 4 git commands to generate.