]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Cleanup pci resource allocation
authorZack Rusin <zackr@vmware.com>
Wed, 4 Nov 2020 20:29:24 +0000 (15:29 -0500)
committerZack Rusin <zackr@vmware.com>
Thu, 14 Jan 2021 17:13:49 +0000 (12:13 -0500)
commitf676b18f5689ad10d436bee3960014a57b8a6634
tree6ed3ba0f9ec8515618e79315a2452c3454bff470
parent9b1fae36612aabb87b889196ff37eb861ac57030
drm/vmwgfx: Cleanup pci resource allocation

Instead of doing it in multiple spots lets centralize the code
to handle pci resources. This also cleans up the error
handling a bit and will make it a lot easier to add additional
svga versions to the driver.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Link: https://patchwork.freedesktop.org/patch/414040/?series=85516&rev=2
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h