drm/ast: Fix missing conversions to managed API
Subsystems (3)
PATCH 1/1 drm/ast: Fix missing conversions to managed API
The commit 7cbb93d89838 ("drm/ast: Use managed pci functions") converted a few PCI accessors to the managed API and dropped the manual pci_iounmap() calls, but it seems to have forgotten converting pci_iomap() to the managed one. It resulted in the leftover resources after the driver unbind. Let's fix them.
--- drivers/gpu/drm/ast/ast_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/ast/ast_main.c +2 -2
@@ -413,7 +413,7 @@ struct ast_private *ast_device_create(const struct drm_driver *drv,pci_set_drvdata (pdev, dev); - ast->regs =pci_iomap (pdev,1 ,0 ); + ast->regs =pcim_iomap (pdev,1 ,0 );if (!ast->regs)return ERR_PTR (-EIO );
@@ -429,7 +429,7 @@ struct ast_private *ast_device_create(const struct drm_driver *drv,/* "map" IO regs if the above hasn't done so already */ if (!ast->ioregs) { - ast->ioregs =pci_iomap (pdev,2 ,0 ); + ast->ioregs =pcim_iomap (pdev,2 ,0 );if (!ast->ioregs)return ERR_PTR (-EIO ); }
Signature · 6 lines
2.26.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thomas Zimmermann
maintainerAm 21.04.21 um 19:04 schrieb Takashi Iwai:
Quoted 8 lines
The commit
7cbb93d89838("drm/ast: Use managed pci functions") converted a few PCI accessors to the managed API and dropped the manualpci_iounmap()calls, but it seems to have forgotten convertingpci_iomap()to the managed one. It resulted in the leftover resources after the driver unbind. Let's fix them.Fixes 7cbb93d89838 ("drm/ast: Use managed pci functions")Signed-off-by Takashi Iwai <[email protected]>
Added to drm-misc-next. Thanks, Takashi.
Quoted 27 lines
--- drivers/gpu/drm/ast/ast_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/ast/ast_main.c +2
-2@@ -413,7 +413,7 @@ struct ast_private *ast_device_create(const struct drm_driver *drv,pci_set_drvdata (pdev, dev); - ast->regs =pci_iomap (pdev,1 ,0 ); + ast->regs =pcim_iomap (pdev,1 ,0 );if (!ast->regs)return ERR_PTR (-EIO );@@ -429,7 +429,7 @@ struct ast_private *ast_device_create(const struct drm_driver *drv,/* "map" IO regs if the above hasn't done so already */ if (!ast->ioregs) { - ast->ioregs =pci_iomap (pdev,2 ,0 ); + ast->ioregs =pcim_iomap (pdev,2 ,0 );if (!ast->ioregs)return ERR_PTR (-EIO ); }
Signature · 6 lines
Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel