aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/intelfb
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-04-19 12:55:53 -0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-05-13 09:05:24 -0400
commit701d707c64f30a46510871513528b264e07a9634 (patch)
treeb922976990a84d1374b9c3b93d89cf2e153b6863 /drivers/video/intelfb
parent113b66844ccd6eb3525c50a506e90b03155fdaf4 (diff)
drivers/video/intelfb/intelfbdrv.c: add missing agp_backend_release
Release bridge, as done on all other paths out of the function. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/intelfb')
-rw-r--r--drivers/video/intelfb/intelfbdrv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c
index 02fd2263610c..bdcbfbae2777 100644
--- a/drivers/video/intelfb/intelfbdrv.c
+++ b/drivers/video/intelfb/intelfbdrv.c
@@ -680,6 +680,7 @@ static int __devinit intelfb_pci_register(struct pci_dev *pdev,
680 + dinfo->fb.size); 680 + dinfo->fb.size);
681 if (!dinfo->aperture.virtual) { 681 if (!dinfo->aperture.virtual) {
682 ERR_MSG("Cannot remap FB region.\n"); 682 ERR_MSG("Cannot remap FB region.\n");
683 agp_backend_release(bridge);
683 cleanup(dinfo); 684 cleanup(dinfo);
684 return -ENODEV; 685 return -ENODEV;
685 } 686 }
@@ -689,6 +690,7 @@ static int __devinit intelfb_pci_register(struct pci_dev *pdev,
689 INTEL_REG_SIZE); 690 INTEL_REG_SIZE);
690 if (!dinfo->mmio_base) { 691 if (!dinfo->mmio_base) {
691 ERR_MSG("Cannot remap MMIO region.\n"); 692 ERR_MSG("Cannot remap MMIO region.\n");
693 agp_backend_release(bridge);
692 cleanup(dinfo); 694 cleanup(dinfo);
693 return -ENODEV; 695 return -ENODEV;
694 } 696 }