mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
Staging: xgifb: disable pci device on pci remove function.
Signed-off-by: Miguel Gómez <magomez@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
05e06036dd
commit
bf55b48371
@ -2297,6 +2297,7 @@ static void __devexit xgifb_remove(struct pci_dev *pdev)
|
|||||||
iounmap(xgifb_info->video_vbase);
|
iounmap(xgifb_info->video_vbase);
|
||||||
release_mem_region(xgifb_info->mmio_base, xgifb_info->mmio_size);
|
release_mem_region(xgifb_info->mmio_base, xgifb_info->mmio_size);
|
||||||
release_mem_region(xgifb_info->video_base, xgifb_info->video_size);
|
release_mem_region(xgifb_info->video_base, xgifb_info->video_size);
|
||||||
|
pci_disable_device(pdev);
|
||||||
framebuffer_release(fb_info);
|
framebuffer_release(fb_info);
|
||||||
pci_set_drvdata(pdev, NULL);
|
pci_set_drvdata(pdev, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user