Remove unneeded PCI compatibility code
[madwifi/.git] / ath / if_ath_pci.h
index 0263a68a494b4d580604009b72fda8f7978e2f0c..23e504c5f40f960c0117ac390e23ee644e3a140c 100644 (file)
 #include <linux/pci.h>
 #define bus_map_single         pci_map_single
 #define bus_unmap_single       pci_unmap_single
-
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9)
 #define bus_dma_sync_single    pci_dma_sync_single_for_cpu
-#define        PCI_SAVE_STATE(a,b)     pci_save_state(a)
-#define        PCI_RESTORE_STATE(a,b)  pci_restore_state(a)
-#else
-#define bus_dma_sync_single    pci_dma_sync_single
-#define        PCI_SAVE_STATE(a,b)     pci_save_state(a, b)
-#define        PCI_RESTORE_STATE(a,b)  pci_restore_state(a, b)
-#endif
-
 #define bus_alloc_consistent   pci_alloc_consistent
 #define bus_free_consistent    pci_free_consistent
 #define BUS_DMA_FROMDEVICE     PCI_DMA_FROMDEVICE
 #define BUS_DMA_TODEVICE       PCI_DMA_TODEVICE
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11)
-#define pm_message_t u32
-#endif
-
-#ifndef PCI_D0
-#define PCI_D0         0
-#endif
-
-#ifndef PCI_D3hot
-#define PCI_D3hot      3
-#endif
-
 #endif   /* _DEV_ATH_PCI_H_ */