]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/vmwgfx: Use non-hybrid PCI devres API
authorPhilipp Stanner <phasta@kernel.org>
Wed, 14 May 2025 07:31:27 +0000 (09:31 +0200)
committerZack Rusin <zack.rusin@broadcom.com>
Wed, 14 May 2025 11:53:14 +0000 (07:53 -0400)
commit9934ab18051118385c7ea44d8e14175edbe6dc9c
treee82e1de36f74422fb6714d7cbec36ed6a616af86
parent217f80acfcf126b7d7d7b818c9bfea3c96fa85ec
drm/vmwgfx: Use non-hybrid PCI devres API

vmwgfx enables its PCI device with pcim_enable_device(). This,
implicitly, switches the function pci_request_regions() into managed
mode, where it becomes a devres function.

The PCI subsystem wants to remove this hybrid nature from its
interfaces. To do so, users of the aforementioned combination of
functions must be ported to non-hybrid functions.

Moreover, since both functions are already managed in this driver, the
calls to pci_release_regions() are unnecessary.

Remove the calls to pci_release_regions().

Replace the call to sometimes-managed pci_request_regions() with one to
always-managed pcim_request_all_regions().

Signed-off-by: Philipp Stanner <phasta@kernel.org>
Reviewed-by: Zack Rusin <zack.rusin@broadcom.com>
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://lore.kernel.org/r/20250514073126.85443-2-phasta@kernel.org
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c