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/prism54 | |
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/prism54')
-rw-r--r-- | drivers/net/wireless/prism54/isl_ioctl.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/prism54/isl_ioctl.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/prism54/islpci_dev.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/prism54/islpci_eth.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/prism54/islpci_eth.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/prism54/islpci_mgt.c | 2 |
6 files changed, 13 insertions, 12 deletions
diff --git a/drivers/net/wireless/prism54/isl_ioctl.c b/drivers/net/wireless/prism54/isl_ioctl.c index 286325ca329..e7700b4257e 100644 --- a/drivers/net/wireless/prism54/isl_ioctl.c +++ b/drivers/net/wireless/prism54/isl_ioctl.c | |||
@@ -158,8 +158,9 @@ prism54_mib_init(islpci_private *priv) | |||
158 | * schedule_work(), thus we can as well use sleeping semaphore | 158 | * schedule_work(), thus we can as well use sleeping semaphore |
159 | * locking */ | 159 | * locking */ |
160 | void | 160 | void |
161 | prism54_update_stats(islpci_private *priv) | 161 | prism54_update_stats(struct work_struct *work) |
162 | { | 162 | { |
163 | islpci_private *priv = container_of(work, islpci_private, stats_work); | ||
163 | char *data; | 164 | char *data; |
164 | int j; | 165 | int j; |
165 | struct obj_bss bss, *bss2; | 166 | struct obj_bss bss, *bss2; |
@@ -2494,9 +2495,10 @@ prism54_process_trap_helper(islpci_private *priv, enum oid_num_t oid, | |||
2494 | * interrupt context, no locks held. | 2495 | * interrupt context, no locks held. |
2495 | */ | 2496 | */ |
2496 | void | 2497 | void |
2497 | prism54_process_trap(void *data) | 2498 | prism54_process_trap(struct work_struct *work) |
2498 | { | 2499 | { |
2499 | struct islpci_mgmtframe *frame = data; | 2500 | struct islpci_mgmtframe *frame = |
2501 | container_of(work, struct islpci_mgmtframe, ws); | ||
2500 | struct net_device *ndev = frame->ndev; | 2502 | struct net_device *ndev = frame->ndev; |
2501 | enum oid_num_t n = mgt_oidtonum(frame->header->oid); | 2503 | enum oid_num_t n = mgt_oidtonum(frame->header->oid); |
2502 | 2504 | ||
diff --git a/drivers/net/wireless/prism54/isl_ioctl.h b/drivers/net/wireless/prism54/isl_ioctl.h index 65f33acd0a4..0802fa64996 100644 --- a/drivers/net/wireless/prism54/isl_ioctl.h +++ b/drivers/net/wireless/prism54/isl_ioctl.h | |||
@@ -32,12 +32,12 @@ | |||
32 | void prism54_mib_init(islpci_private *); | 32 | void prism54_mib_init(islpci_private *); |
33 | 33 | ||
34 | struct iw_statistics *prism54_get_wireless_stats(struct net_device *); | 34 | struct iw_statistics *prism54_get_wireless_stats(struct net_device *); |
35 | void prism54_update_stats(islpci_private *); | 35 | void prism54_update_stats(struct work_struct *); |
36 | 36 | ||
37 | void prism54_acl_init(struct islpci_acl *); | 37 | void prism54_acl_init(struct islpci_acl *); |
38 | void prism54_acl_clean(struct islpci_acl *); | 38 | void prism54_acl_clean(struct islpci_acl *); |
39 | 39 | ||
40 | void prism54_process_trap(void *); | 40 | void prism54_process_trap(struct work_struct *); |
41 | 41 | ||
42 | void prism54_wpa_bss_ie_init(islpci_private *priv); | 42 | void prism54_wpa_bss_ie_init(islpci_private *priv); |
43 | void prism54_wpa_bss_ie_clean(islpci_private *priv); | 43 | void prism54_wpa_bss_ie_clean(islpci_private *priv); |
diff --git a/drivers/net/wireless/prism54/islpci_dev.c b/drivers/net/wireless/prism54/islpci_dev.c index ec1c00f19eb..e35fcb2543c 100644 --- a/drivers/net/wireless/prism54/islpci_dev.c +++ b/drivers/net/wireless/prism54/islpci_dev.c | |||
@@ -861,11 +861,10 @@ islpci_setup(struct pci_dev *pdev) | |||
861 | priv->state_off = 1; | 861 | priv->state_off = 1; |
862 | 862 | ||
863 | /* initialize workqueue's */ | 863 | /* initialize workqueue's */ |
864 | INIT_WORK(&priv->stats_work, | 864 | INIT_WORK(&priv->stats_work, prism54_update_stats); |
865 | (void (*)(void *)) prism54_update_stats, priv); | ||
866 | priv->stats_timestamp = 0; | 865 | priv->stats_timestamp = 0; |
867 | 866 | ||
868 | INIT_WORK(&priv->reset_task, islpci_do_reset_and_wake, priv); | 867 | INIT_WORK(&priv->reset_task, islpci_do_reset_and_wake); |
869 | priv->reset_task_pending = 0; | 868 | priv->reset_task_pending = 0; |
870 | 869 | ||
871 | /* allocate various memory areas */ | 870 | /* allocate various memory areas */ |
diff --git a/drivers/net/wireless/prism54/islpci_eth.c b/drivers/net/wireless/prism54/islpci_eth.c index a8261d8454d..103a3787773 100644 --- a/drivers/net/wireless/prism54/islpci_eth.c +++ b/drivers/net/wireless/prism54/islpci_eth.c | |||
@@ -482,9 +482,9 @@ islpci_eth_receive(islpci_private *priv) | |||
482 | } | 482 | } |
483 | 483 | ||
484 | void | 484 | void |
485 | islpci_do_reset_and_wake(void *data) | 485 | islpci_do_reset_and_wake(struct work_struct *work) |
486 | { | 486 | { |
487 | islpci_private *priv = (islpci_private *) data; | 487 | islpci_private *priv = container_of(work, islpci_private, reset_task); |
488 | islpci_reset(priv, 1); | 488 | islpci_reset(priv, 1); |
489 | netif_wake_queue(priv->ndev); | 489 | netif_wake_queue(priv->ndev); |
490 | priv->reset_task_pending = 0; | 490 | priv->reset_task_pending = 0; |
diff --git a/drivers/net/wireless/prism54/islpci_eth.h b/drivers/net/wireless/prism54/islpci_eth.h index bc9d7a60b8d..99d37eda9f0 100644 --- a/drivers/net/wireless/prism54/islpci_eth.h +++ b/drivers/net/wireless/prism54/islpci_eth.h | |||
@@ -68,6 +68,6 @@ void islpci_eth_cleanup_transmit(islpci_private *, isl38xx_control_block *); | |||
68 | int islpci_eth_transmit(struct sk_buff *, struct net_device *); | 68 | int islpci_eth_transmit(struct sk_buff *, struct net_device *); |
69 | int islpci_eth_receive(islpci_private *); | 69 | int islpci_eth_receive(islpci_private *); |
70 | void islpci_eth_tx_timeout(struct net_device *); | 70 | void islpci_eth_tx_timeout(struct net_device *); |
71 | void islpci_do_reset_and_wake(void *data); | 71 | void islpci_do_reset_and_wake(struct work_struct *); |
72 | 72 | ||
73 | #endif /* _ISL_GEN_H */ | 73 | #endif /* _ISL_GEN_H */ |
diff --git a/drivers/net/wireless/prism54/islpci_mgt.c b/drivers/net/wireless/prism54/islpci_mgt.c index 2e061a80b29..656ec9fa712 100644 --- a/drivers/net/wireless/prism54/islpci_mgt.c +++ b/drivers/net/wireless/prism54/islpci_mgt.c | |||
@@ -387,7 +387,7 @@ islpci_mgt_receive(struct net_device *ndev) | |||
387 | 387 | ||
388 | /* Create work to handle trap out of interrupt | 388 | /* Create work to handle trap out of interrupt |
389 | * context. */ | 389 | * context. */ |
390 | INIT_WORK(&frame->ws, prism54_process_trap, frame); | 390 | INIT_WORK(&frame->ws, prism54_process_trap); |
391 | schedule_work(&frame->ws); | 391 | schedule_work(&frame->ws); |
392 | 392 | ||
393 | } else { | 393 | } else { |