Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43780
b: refs/heads/master
c: 295a1b4
h: refs/heads/master
v: v3
  • Loading branch information
Amol Lad authored and Linus Torvalds committed Dec 8, 2006
1 parent 01ecd1f commit f1f5a7e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 027b53dd92e3d1a23c56d85e006a9bb5e63314f9
refs/heads/master: 295a1b476749e8b6fa6c3c0978426360ac7dde4b
18 changes: 18 additions & 0 deletions trunk/drivers/video/pvr2fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,15 @@ static int __init pvr2fb_dc_init(void)

static void pvr2fb_dc_exit(void)
{
if (fb_info->screen_base) {
iounmap(fb_info->screen_base);
fb_info->screen_base = NULL;
}
if (currentpar->mmio_base) {
iounmap((void *)currentpar->mmio_base);
currentpar->mmio_base = 0;
}

free_irq(HW_EVENT_VSYNC, 0);
#ifdef CONFIG_SH_DMA
free_dma(pvr2dma);
Expand Down Expand Up @@ -946,6 +955,15 @@ static int __devinit pvr2fb_pci_probe(struct pci_dev *pdev,

static void __devexit pvr2fb_pci_remove(struct pci_dev *pdev)
{
if (fb_info->screen_base) {
iounmap(fb_info->screen_base);
fb_info->screen_base = NULL;
}
if (currentpar->mmio_base) {
iounmap((void *)currentpar->mmio_base);
currentpar->mmio_base = 0;
}

pci_release_regions(pdev);
}

Expand Down

0 comments on commit f1f5a7e

Please sign in to comment.