diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-12-30 00:20:30 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-12-30 00:21:47 -0500 |
commit | d392da5207352f09030e95d9ea335a4225667ec0 (patch) | |
tree | 7d6cd1932afcad0a5619a5c504a6d93ca318187c /drivers/net/starfire.c | |
parent | e39d5ef678045d61812c1401f04fe8edb14d6359 (diff) | |
parent | 387c31c7e5c9805b0aef8833d1731a5fe7bdea14 (diff) |
Merge v2.6.37-rc8 into powerpc/next
Diffstat (limited to 'drivers/net/starfire.c')
-rw-r--r-- | drivers/net/starfire.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/starfire.c b/drivers/net/starfire.c index a42b6873370b..4adf12422787 100644 --- a/drivers/net/starfire.c +++ b/drivers/net/starfire.c | |||
@@ -148,7 +148,7 @@ static int full_duplex[MAX_UNITS] = {0, }; | |||
148 | * This SUCKS. | 148 | * This SUCKS. |
149 | * We need a much better method to determine if dma_addr_t is 64-bit. | 149 | * We need a much better method to determine if dma_addr_t is 64-bit. |
150 | */ | 150 | */ |
151 | #if (defined(__i386__) && defined(CONFIG_HIGHMEM64G)) || defined(__x86_64__) || defined (__ia64__) || defined(__alpha__) || defined(__mips64__) || (defined(__mips__) && defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) | 151 | #if (defined(__i386__) && defined(CONFIG_HIGHMEM64G)) || defined(__x86_64__) || defined (__ia64__) || defined(__alpha__) || defined(__mips64__) || (defined(__mips__) && defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) || (defined(__powerpc64__) || defined(CONFIG_PHYS_64BIT)) |
152 | /* 64-bit dma_addr_t */ | 152 | /* 64-bit dma_addr_t */ |
153 | #define ADDR_64BITS /* This chip uses 64 bit addresses. */ | 153 | #define ADDR_64BITS /* This chip uses 64 bit addresses. */ |
154 | #define netdrv_addr_t __le64 | 154 | #define netdrv_addr_t __le64 |
@@ -302,7 +302,7 @@ enum chipset { | |||
302 | }; | 302 | }; |
303 | 303 | ||
304 | static DEFINE_PCI_DEVICE_TABLE(starfire_pci_tbl) = { | 304 | static DEFINE_PCI_DEVICE_TABLE(starfire_pci_tbl) = { |
305 | { 0x9004, 0x6915, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_6915 }, | 305 | { PCI_VDEVICE(ADAPTEC, 0x6915), CH_6915 }, |
306 | { 0, } | 306 | { 0, } |
307 | }; | 307 | }; |
308 | MODULE_DEVICE_TABLE(pci, starfire_pci_tbl); | 308 | MODULE_DEVICE_TABLE(pci, starfire_pci_tbl); |
@@ -2078,11 +2078,7 @@ static int __init starfire_init (void) | |||
2078 | printk(KERN_INFO DRV_NAME ": polling (NAPI) enabled\n"); | 2078 | printk(KERN_INFO DRV_NAME ": polling (NAPI) enabled\n"); |
2079 | #endif | 2079 | #endif |
2080 | 2080 | ||
2081 | /* we can do this test only at run-time... sigh */ | 2081 | BUILD_BUG_ON(sizeof(dma_addr_t) != sizeof(netdrv_addr_t)); |
2082 | if (sizeof(dma_addr_t) != sizeof(netdrv_addr_t)) { | ||
2083 | printk("This driver has dma_addr_t issues, please send email to maintainer\n"); | ||
2084 | return -ENODEV; | ||
2085 | } | ||
2086 | 2082 | ||
2087 | return pci_register_driver(&starfire_driver); | 2083 | return pci_register_driver(&starfire_driver); |
2088 | } | 2084 | } |