diff options
author | David Howells <dhowells@redhat.com> | 2006-11-22 09:57:56 -0500 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2006-11-22 09:57:56 -0500 |
commit | c4028958b6ecad064b1a6303a6a5906d4fe48d73 (patch) | |
tree | 1c4c89652c62a75da09f9b9442012007e4ac6250 /drivers/net/wireless/ipw2100.c | |
parent | 65f27f38446e1976cc98fd3004b110fedcddd189 (diff) |
WorkStruct: make allyesconfig
Fix up for make allyesconfig.
Signed-Off-By: David Howells <dhowells@redhat.com>
Diffstat (limited to 'drivers/net/wireless/ipw2100.c')
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 4e4eaa2a99ca..0f554373a60d 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -316,7 +316,7 @@ static void ipw2100_release_firmware(struct ipw2100_priv *priv, | |||
316 | struct ipw2100_fw *fw); | 316 | struct ipw2100_fw *fw); |
317 | static int ipw2100_ucode_download(struct ipw2100_priv *priv, | 317 | static int ipw2100_ucode_download(struct ipw2100_priv *priv, |
318 | struct ipw2100_fw *fw); | 318 | struct ipw2100_fw *fw); |
319 | static void ipw2100_wx_event_work(struct ipw2100_priv *priv); | 319 | static void ipw2100_wx_event_work(struct work_struct *work); |
320 | static struct iw_statistics *ipw2100_wx_wireless_stats(struct net_device *dev); | 320 | static struct iw_statistics *ipw2100_wx_wireless_stats(struct net_device *dev); |
321 | static struct iw_handler_def ipw2100_wx_handler_def; | 321 | static struct iw_handler_def ipw2100_wx_handler_def; |
322 | 322 | ||
@@ -679,7 +679,8 @@ static void schedule_reset(struct ipw2100_priv *priv) | |||
679 | queue_delayed_work(priv->workqueue, &priv->reset_work, | 679 | queue_delayed_work(priv->workqueue, &priv->reset_work, |
680 | priv->reset_backoff * HZ); | 680 | priv->reset_backoff * HZ); |
681 | else | 681 | else |
682 | queue_work(priv->workqueue, &priv->reset_work); | 682 | queue_delayed_work(priv->workqueue, &priv->reset_work, |
683 | 0); | ||
683 | 684 | ||
684 | if (priv->reset_backoff < MAX_RESET_BACKOFF) | 685 | if (priv->reset_backoff < MAX_RESET_BACKOFF) |
685 | priv->reset_backoff++; | 686 | priv->reset_backoff++; |
@@ -1873,8 +1874,10 @@ static void ipw2100_down(struct ipw2100_priv *priv) | |||
1873 | netif_stop_queue(priv->net_dev); | 1874 | netif_stop_queue(priv->net_dev); |
1874 | } | 1875 | } |
1875 | 1876 | ||
1876 | static void ipw2100_reset_adapter(struct ipw2100_priv *priv) | 1877 | static void ipw2100_reset_adapter(struct work_struct *work) |
1877 | { | 1878 | { |
1879 | struct ipw2100_priv *priv = | ||
1880 | container_of(work, struct ipw2100_priv, reset_work.work); | ||
1878 | unsigned long flags; | 1881 | unsigned long flags; |
1879 | union iwreq_data wrqu = { | 1882 | union iwreq_data wrqu = { |
1880 | .ap_addr = { | 1883 | .ap_addr = { |
@@ -2071,9 +2074,9 @@ static void isr_indicate_association_lost(struct ipw2100_priv *priv, u32 status) | |||
2071 | return; | 2074 | return; |
2072 | 2075 | ||
2073 | if (priv->status & STATUS_SECURITY_UPDATED) | 2076 | if (priv->status & STATUS_SECURITY_UPDATED) |
2074 | queue_work(priv->workqueue, &priv->security_work); | 2077 | queue_delayed_work(priv->workqueue, &priv->security_work, 0); |
2075 | 2078 | ||
2076 | queue_work(priv->workqueue, &priv->wx_event_work); | 2079 | queue_delayed_work(priv->workqueue, &priv->wx_event_work, 0); |
2077 | } | 2080 | } |
2078 | 2081 | ||
2079 | static void isr_indicate_rf_kill(struct ipw2100_priv *priv, u32 status) | 2082 | static void isr_indicate_rf_kill(struct ipw2100_priv *priv, u32 status) |
@@ -5524,8 +5527,11 @@ static int ipw2100_configure_security(struct ipw2100_priv *priv, int batch_mode) | |||
5524 | return err; | 5527 | return err; |
5525 | } | 5528 | } |
5526 | 5529 | ||
5527 | static void ipw2100_security_work(struct ipw2100_priv *priv) | 5530 | static void ipw2100_security_work(struct work_struct *work) |
5528 | { | 5531 | { |
5532 | struct ipw2100_priv *priv = | ||
5533 | container_of(work, struct ipw2100_priv, security_work.work); | ||
5534 | |||
5529 | /* If we happen to have reconnected before we get a chance to | 5535 | /* If we happen to have reconnected before we get a chance to |
5530 | * process this, then update the security settings--which causes | 5536 | * process this, then update the security settings--which causes |
5531 | * a disassociation to occur */ | 5537 | * a disassociation to occur */ |
@@ -5748,7 +5754,7 @@ static int ipw2100_set_address(struct net_device *dev, void *p) | |||
5748 | 5754 | ||
5749 | priv->reset_backoff = 0; | 5755 | priv->reset_backoff = 0; |
5750 | mutex_unlock(&priv->action_mutex); | 5756 | mutex_unlock(&priv->action_mutex); |
5751 | ipw2100_reset_adapter(priv); | 5757 | ipw2100_reset_adapter(&priv->reset_work.work); |
5752 | return 0; | 5758 | return 0; |
5753 | 5759 | ||
5754 | done: | 5760 | done: |
@@ -5923,9 +5929,10 @@ static const struct ethtool_ops ipw2100_ethtool_ops = { | |||
5923 | .get_drvinfo = ipw_ethtool_get_drvinfo, | 5929 | .get_drvinfo = ipw_ethtool_get_drvinfo, |
5924 | }; | 5930 | }; |
5925 | 5931 | ||
5926 | static void ipw2100_hang_check(void *adapter) | 5932 | static void ipw2100_hang_check(struct work_struct *work) |
5927 | { | 5933 | { |
5928 | struct ipw2100_priv *priv = adapter; | 5934 | struct ipw2100_priv *priv = |
5935 | container_of(work, struct ipw2100_priv, hang_check.work); | ||
5929 | unsigned long flags; | 5936 | unsigned long flags; |
5930 | u32 rtc = 0xa5a5a5a5; | 5937 | u32 rtc = 0xa5a5a5a5; |
5931 | u32 len = sizeof(rtc); | 5938 | u32 len = sizeof(rtc); |
@@ -5965,9 +5972,10 @@ static void ipw2100_hang_check(void *adapter) | |||
5965 | spin_unlock_irqrestore(&priv->low_lock, flags); | 5972 | spin_unlock_irqrestore(&priv->low_lock, flags); |
5966 | } | 5973 | } |
5967 | 5974 | ||
5968 | static void ipw2100_rf_kill(void *adapter) | 5975 | static void ipw2100_rf_kill(struct work_struct *work) |
5969 | { | 5976 | { |
5970 | struct ipw2100_priv *priv = adapter; | 5977 | struct ipw2100_priv *priv = |
5978 | container_of(work, struct ipw2100_priv, rf_kill.work); | ||
5971 | unsigned long flags; | 5979 | unsigned long flags; |
5972 | 5980 | ||
5973 | spin_lock_irqsave(&priv->low_lock, flags); | 5981 | spin_lock_irqsave(&priv->low_lock, flags); |
@@ -6117,14 +6125,11 @@ static struct net_device *ipw2100_alloc_device(struct pci_dev *pci_dev, | |||
6117 | 6125 | ||
6118 | priv->workqueue = create_workqueue(DRV_NAME); | 6126 | priv->workqueue = create_workqueue(DRV_NAME); |
6119 | 6127 | ||
6120 | INIT_WORK(&priv->reset_work, | 6128 | INIT_DELAYED_WORK(&priv->reset_work, ipw2100_reset_adapter); |
6121 | (void (*)(void *))ipw2100_reset_adapter, priv); | 6129 | INIT_DELAYED_WORK(&priv->security_work, ipw2100_security_work); |
6122 | INIT_WORK(&priv->security_work, | 6130 | INIT_DELAYED_WORK(&priv->wx_event_work, ipw2100_wx_event_work); |
6123 | (void (*)(void *))ipw2100_security_work, priv); | 6131 | INIT_DELAYED_WORK(&priv->hang_check, ipw2100_hang_check); |
6124 | INIT_WORK(&priv->wx_event_work, | 6132 | INIT_DELAYED_WORK(&priv->rf_kill, ipw2100_rf_kill); |
6125 | (void (*)(void *))ipw2100_wx_event_work, priv); | ||
6126 | INIT_WORK(&priv->hang_check, ipw2100_hang_check, priv); | ||
6127 | INIT_WORK(&priv->rf_kill, ipw2100_rf_kill, priv); | ||
6128 | 6133 | ||
6129 | tasklet_init(&priv->irq_tasklet, (void (*)(unsigned long)) | 6134 | tasklet_init(&priv->irq_tasklet, (void (*)(unsigned long)) |
6130 | ipw2100_irq_tasklet, (unsigned long)priv); | 6135 | ipw2100_irq_tasklet, (unsigned long)priv); |
@@ -8290,8 +8295,10 @@ static struct iw_handler_def ipw2100_wx_handler_def = { | |||
8290 | .get_wireless_stats = ipw2100_wx_wireless_stats, | 8295 | .get_wireless_stats = ipw2100_wx_wireless_stats, |
8291 | }; | 8296 | }; |
8292 | 8297 | ||
8293 | static void ipw2100_wx_event_work(struct ipw2100_priv *priv) | 8298 | static void ipw2100_wx_event_work(struct work_struct *work) |
8294 | { | 8299 | { |
8300 | struct ipw2100_priv *priv = | ||
8301 | container_of(work, struct ipw2100_priv, wx_event_work.work); | ||
8295 | union iwreq_data wrqu; | 8302 | union iwreq_data wrqu; |
8296 | int len = ETH_ALEN; | 8303 | int len = ETH_ALEN; |
8297 | 8304 | ||