projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5701b6
)
V4L/DVB (13784): [Mantis] Use PCI API instead of hardcoded length
author
Manu Abraham
<abraham.manu@gmail.com>
Fri, 4 Dec 2009 08:32:51 +0000
(
05:32
-0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sun, 17 Jan 2010 13:55:41 +0000
(11:55 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/mantis/mantis_pci.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/mantis/mantis_pci.c
b/drivers/media/dvb/mantis/mantis_pci.c
index a068ffb32534dbd37662a48a3120758544621ea0..d3a62b18590ebeabf8ac1d47cc2f88bc5d159bfa 100644
(file)
--- 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,
goto err0;
}
- if ((mantis->mantis_mmio = ioremap(mantis->mantis_addr, 0x1000)) == NULL) {
+ mantis->mantis_mmio = ioremap(pci_resource_start(pdev, 0),
+ pci_resource_len(pdev, 0));
+
+ if (!mantis->mantis_mmio) {
dprintk(verbose, MANTIS_ERROR, 1, "IO remap failed");
ret = -ENODEV;
goto err1;