]> err.no Git - linux-2.6/commitdiff
e1000e: use resource_size_t, not unsigned long, for phys addrs
authorBecky Bruce <bgill@freescale.com>
Thu, 1 May 2008 23:03:11 +0000 (18:03 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 22 May 2008 10:19:32 +0000 (06:19 -0400)
The use of unsigned long causes the driver to fail on 32-bit systems
which support 64-bit resources.

Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/e1000e/netdev.c

index 8cbb40f3a5061cc9287e003543a0fb3c54650e0f..cab1835173cd9bb7096f82647a5f59ae13eaba18 100644 (file)
@@ -4201,8 +4201,8 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
        struct e1000_adapter *adapter;
        struct e1000_hw *hw;
        const struct e1000_info *ei = e1000_info_tbl[ent->driver_data];
-       unsigned long mmio_start, mmio_len;
-       unsigned long flash_start, flash_len;
+       resource_size_t mmio_start, mmio_len;
+       resource_size_t flash_start, flash_len;
 
        static int cards_found;
        int i, err, pci_using_dac;