diff options
author | Pavel Machek <pavel@ucw.cz> | 2005-06-20 17:28:42 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-27 23:26:30 -0400 |
commit | 4663663f1d91aa0b84526841e47f401598bfa2f4 (patch) | |
tree | aad2d6fc255ad462fa8151ba49491b15759f32b2 /drivers | |
parent | 0e08b44eedacb7824c88678d9a9ea7db25b5401c (diff) |
[PATCH] ipw2100: assume recent kernel
ipw2100 still has support for old kernels. Thats considered bad for patch in
mainline... this fixes few instances.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 16 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2100.h | 24 |
2 files changed, 0 insertions, 40 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 2f2ae1777805..d2b70f6e99dd 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -6702,17 +6702,9 @@ static int ipw2100_suspend(struct pci_dev *pci_dev, pm_message_t state) | |||
6702 | /* Remove the PRESENT state of the device */ | 6702 | /* Remove the PRESENT state of the device */ |
6703 | netif_device_detach(dev); | 6703 | netif_device_detach(dev); |
6704 | 6704 | ||
6705 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) | ||
6706 | pci_save_state(pci_dev, priv->pm_state); | ||
6707 | #else | ||
6708 | pci_save_state(pci_dev); | 6705 | pci_save_state(pci_dev); |
6709 | #endif | ||
6710 | pci_disable_device (pci_dev); | 6706 | pci_disable_device (pci_dev); |
6711 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11) | ||
6712 | pci_set_power_state(pci_dev, state); | ||
6713 | #else | ||
6714 | pci_set_power_state(pci_dev, PCI_D3hot); | 6707 | pci_set_power_state(pci_dev, PCI_D3hot); |
6715 | #endif | ||
6716 | 6708 | ||
6717 | up(&priv->action_sem); | 6709 | up(&priv->action_sem); |
6718 | 6710 | ||
@@ -6733,17 +6725,9 @@ static int ipw2100_resume(struct pci_dev *pci_dev) | |||
6733 | IPW_DEBUG_INFO("%s: Coming out of suspend...\n", | 6725 | IPW_DEBUG_INFO("%s: Coming out of suspend...\n", |
6734 | dev->name); | 6726 | dev->name); |
6735 | 6727 | ||
6736 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11) | ||
6737 | pci_set_power_state(pci_dev, 0); | ||
6738 | #else | ||
6739 | pci_set_power_state(pci_dev, PCI_D0); | 6728 | pci_set_power_state(pci_dev, PCI_D0); |
6740 | #endif | ||
6741 | pci_enable_device(pci_dev); | 6729 | pci_enable_device(pci_dev); |
6742 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) | ||
6743 | pci_restore_state(pci_dev, priv->pm_state); | ||
6744 | #else | ||
6745 | pci_restore_state(pci_dev); | 6730 | pci_restore_state(pci_dev); |
6746 | #endif | ||
6747 | 6731 | ||
6748 | /* | 6732 | /* |
6749 | * Suspend/Resume resets the PCI configuration space, so we have to | 6733 | * Suspend/Resume resets the PCI configuration space, so we have to |
diff --git a/drivers/net/wireless/ipw2100.h b/drivers/net/wireless/ipw2100.h index 40a1373defa9..2980900beb53 100644 --- a/drivers/net/wireless/ipw2100.h +++ b/drivers/net/wireless/ipw2100.h | |||
@@ -44,30 +44,6 @@ | |||
44 | 44 | ||
45 | #include <linux/workqueue.h> | 45 | #include <linux/workqueue.h> |
46 | 46 | ||
47 | #ifndef IRQ_NONE | ||
48 | typedef void irqreturn_t; | ||
49 | #define IRQ_NONE | ||
50 | #define IRQ_HANDLED | ||
51 | #define IRQ_RETVAL(x) | ||
52 | #endif | ||
53 | |||
54 | #if WIRELESS_EXT < 17 | ||
55 | #define IW_QUAL_QUAL_INVALID 0x10 | ||
56 | #define IW_QUAL_LEVEL_INVALID 0x20 | ||
57 | #define IW_QUAL_NOISE_INVALID 0x40 | ||
58 | #endif | ||
59 | |||
60 | #if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,5) ) | ||
61 | #define pci_dma_sync_single_for_cpu pci_dma_sync_single | ||
62 | #define pci_dma_sync_single_for_device pci_dma_sync_single | ||
63 | #endif | ||
64 | |||
65 | #ifndef HAVE_FREE_NETDEV | ||
66 | #define free_netdev(x) kfree(x) | ||
67 | #endif | ||
68 | |||
69 | |||
70 | |||
71 | struct ipw2100_priv; | 47 | struct ipw2100_priv; |
72 | struct ipw2100_tx_packet; | 48 | struct ipw2100_tx_packet; |
73 | struct ipw2100_rx_packet; | 49 | struct ipw2100_rx_packet; |