diff options
Diffstat (limited to 'drivers/net/starfire.c')
-rw-r--r-- | drivers/net/starfire.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/net/starfire.c b/drivers/net/starfire.c index a42b6873370b..36045f3b0327 100644 --- a/drivers/net/starfire.c +++ b/drivers/net/starfire.c | |||
@@ -144,11 +144,7 @@ static int full_duplex[MAX_UNITS] = {0, }; | |||
144 | /* Time in jiffies before concluding the transmitter is hung. */ | 144 | /* Time in jiffies before concluding the transmitter is hung. */ |
145 | #define TX_TIMEOUT (2 * HZ) | 145 | #define TX_TIMEOUT (2 * HZ) |
146 | 146 | ||
147 | /* | 147 | #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT |
148 | * This SUCKS. | ||
149 | * We need a much better method to determine if dma_addr_t is 64-bit. | ||
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)) | ||
152 | /* 64-bit dma_addr_t */ | 148 | /* 64-bit dma_addr_t */ |
153 | #define ADDR_64BITS /* This chip uses 64 bit addresses. */ | 149 | #define ADDR_64BITS /* This chip uses 64 bit addresses. */ |
154 | #define netdrv_addr_t __le64 | 150 | #define netdrv_addr_t __le64 |
@@ -302,7 +298,7 @@ enum chipset { | |||
302 | }; | 298 | }; |
303 | 299 | ||
304 | static DEFINE_PCI_DEVICE_TABLE(starfire_pci_tbl) = { | 300 | static DEFINE_PCI_DEVICE_TABLE(starfire_pci_tbl) = { |
305 | { 0x9004, 0x6915, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_6915 }, | 301 | { PCI_VDEVICE(ADAPTEC, 0x6915), CH_6915 }, |
306 | { 0, } | 302 | { 0, } |
307 | }; | 303 | }; |
308 | MODULE_DEVICE_TABLE(pci, starfire_pci_tbl); | 304 | MODULE_DEVICE_TABLE(pci, starfire_pci_tbl); |
@@ -2078,11 +2074,7 @@ static int __init starfire_init (void) | |||
2078 | printk(KERN_INFO DRV_NAME ": polling (NAPI) enabled\n"); | 2074 | printk(KERN_INFO DRV_NAME ": polling (NAPI) enabled\n"); |
2079 | #endif | 2075 | #endif |
2080 | 2076 | ||
2081 | /* we can do this test only at run-time... sigh */ | 2077 | 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 | 2078 | ||
2087 | return pci_register_driver(&starfire_driver); | 2079 | return pci_register_driver(&starfire_driver); |
2088 | } | 2080 | } |