Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6725
b: refs/heads/master
c: 4663663
h: refs/heads/master
i:
  6723: 27ab4b8
v: v3
  • Loading branch information
Pavel Machek authored and Jeff Garzik committed Jun 28, 2005
1 parent 2aff890 commit 76e660d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 41 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e08b44eedacb7824c88678d9a9ea7db25b5401c
refs/heads/master: 4663663f1d91aa0b84526841e47f401598bfa2f4
16 changes: 0 additions & 16 deletions trunk/drivers/net/wireless/ipw2100.c
Original file line number Diff line number Diff line change
Expand Up @@ -6702,17 +6702,9 @@ static int ipw2100_suspend(struct pci_dev *pci_dev, pm_message_t state)
/* Remove the PRESENT state of the device */
netif_device_detach(dev);

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
pci_save_state(pci_dev, priv->pm_state);
#else
pci_save_state(pci_dev);
#endif
pci_disable_device (pci_dev);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11)
pci_set_power_state(pci_dev, state);
#else
pci_set_power_state(pci_dev, PCI_D3hot);
#endif

up(&priv->action_sem);

Expand All @@ -6733,17 +6725,9 @@ static int ipw2100_resume(struct pci_dev *pci_dev)
IPW_DEBUG_INFO("%s: Coming out of suspend...\n",
dev->name);

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11)
pci_set_power_state(pci_dev, 0);
#else
pci_set_power_state(pci_dev, PCI_D0);
#endif
pci_enable_device(pci_dev);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
pci_restore_state(pci_dev, priv->pm_state);
#else
pci_restore_state(pci_dev);
#endif

/*
* Suspend/Resume resets the PCI configuration space, so we have to
Expand Down
24 changes: 0 additions & 24 deletions trunk/drivers/net/wireless/ipw2100.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,6 @@

#include <linux/workqueue.h>

#ifndef IRQ_NONE
typedef void irqreturn_t;
#define IRQ_NONE
#define IRQ_HANDLED
#define IRQ_RETVAL(x)
#endif

#if WIRELESS_EXT < 17
#define IW_QUAL_QUAL_INVALID 0x10
#define IW_QUAL_LEVEL_INVALID 0x20
#define IW_QUAL_NOISE_INVALID 0x40
#endif

#if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,5) )
#define pci_dma_sync_single_for_cpu pci_dma_sync_single
#define pci_dma_sync_single_for_device pci_dma_sync_single
#endif

#ifndef HAVE_FREE_NETDEV
#define free_netdev(x) kfree(x)
#endif



struct ipw2100_priv;
struct ipw2100_tx_packet;
struct ipw2100_rx_packet;
Expand Down

0 comments on commit 76e660d

Please sign in to comment.