aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/mantis/mantis_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/mantis/mantis_pci.c')
-rw-r--r--drivers/media/dvb/mantis/mantis_pci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/dvb/mantis/mantis_pci.c b/drivers/media/dvb/mantis/mantis_pci.c
index a068ffb32534..d3a62b18590e 100644
--- a/drivers/media/dvb/mantis/mantis_pci.c
+++ b/drivers/media/dvb/mantis/mantis_pci.c
@@ -169,7 +169,10 @@ static int __devinit mantis_pci_probe(struct pci_dev *pdev,
169 goto err0; 169 goto err0;
170 } 170 }
171 171
172 if ((mantis->mantis_mmio = ioremap(mantis->mantis_addr, 0x1000)) == NULL) { 172 mantis->mantis_mmio = ioremap(pci_resource_start(pdev, 0),
173 pci_resource_len(pdev, 0));
174
175 if (!mantis->mantis_mmio) {
173 dprintk(verbose, MANTIS_ERROR, 1, "IO remap failed"); 176 dprintk(verbose, MANTIS_ERROR, 1, "IO remap failed");
174 ret = -ENODEV; 177 ret = -ENODEV;
175 goto err1; 178 goto err1;