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)
commit8772c0bb58bbf98a6fdd94ddb67e23468a4338bd
tree6ed3ba0f9ec8515618e79315a2452c3454bff470
parentbe4f77ac68843fc347a262e5e7f6dbca8acadc50
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