The patch number 13784 was added via Manu Abraham <m...@linuxtv.org>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Manu Abraham  <abraham.m...@gmail.com>
[Mantis] Use PCI API instead of hardcoded length

Signed-off-by: Manu Abraham <m...@linuxtv.org>


---

 linux/drivers/media/dvb/mantis/mantis_pci.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff -r 2b712c30f6a4 -r 9f9bf39b32c0 linux/drivers/media/dvb/mantis/mantis_pci.c
--- a/linux/drivers/media/dvb/mantis/mantis_pci.c       Fri Dec 04 12:32:30 
2009 +0400
+++ b/linux/drivers/media/dvb/mantis/mantis_pci.c       Fri Dec 04 12:32:51 
2009 +0400
@@ -169,7 +169,10 @@
                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;


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/9f9bf39b32c0e0a303bd4fbf236babec2d89a475

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to