diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-11 16:59:44 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-11 16:59:44 -0500 |
commit | 8966961b31c251b854169e9886394c2a20f2cea7 (patch) | |
tree | 248a625b23335acbd5ca4b55eb136fe0dc8ba0aa /drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c | |
parent | 6a5971d8fea1f4a8c33dfe0cec6a1c490f0c9cde (diff) | |
parent | 7bcb57cde66c19df378f3468ea342166a8a4504d (diff) |
Merge tag 'staging-3.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging driver tree merge from Greg Kroah-Hartman:
"Here's the big staging tree merge for 3.8-rc1
There's a lot of patches in here, the majority being the comedi
rework/cleanup that has been ongoing and is causing a huge reduction
in overall code size, which is amazing to watch. We also removed some
older drivers (telephony and rts_pstor), and added a new one (fwserial
which also came in through the tty tree due to tty api changes, take
that one if you get merge conflicts.)
The iio and ipack drivers are moving out of the staging area into
their own part of the kernel as they have been cleaned up sufficiently
and are working well.
Overall, again a reduction of code:
768 files changed, 31887 insertions(+), 82166 deletions(-)
All of this has been in the linux-next tree for a while.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
* tag 'staging-3.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1298 commits)
iio: imu: adis16480: remove duplicated include from adis16480.c
iio: gyro: adis16136: remove duplicated include from adis16136.c
iio:imu: adis16480: show_firmware() buffer too small
iio:gyro: adis16136: divide by zero in write_frequency()
iio: adc: Add Texas Instruments ADC081C021/027 support
iio:ad7793: Add support for the ad7796 and ad7797
iio:ad7793: Add support for the ad7798 and ad7799
staging:iio: Move ad7793 driver out of staging
staging:iio:ad7793: Implement stricter id checking
staging:iio:ad7793: Move register definitions from header to source
staging:iio:ad7793: Rework regulator handling
staging:iio:ad7793: Rework platform data
staging:iio:ad7793: Use kstrtol instead of strict_strtol
staging:iio:ad7793: Use usleep_range instead of msleep
staging:iio:ad7793: Fix temperature scale
staging:iio:ad7793: Fix VDD monitor scale
staging: gdm72xx: unlock on error in init_usb()
staging: panel: pass correct lengths to keypad_send_key()
staging: comedi: addi_apci_2032: fix interrupt support
staging: comedi: addi_apci_2032: move i_APCI2032_ConfigDigitalOutput()
...
Diffstat (limited to 'drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c')
-rw-r--r-- | drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c index b3882ae9d97..694eae3d4fd 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c | |||
@@ -11,12 +11,14 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
15 | |||
14 | //#include <linux/config.h> | 16 | //#include <linux/config.h> |
15 | #include <linux/module.h> | 17 | #include <linux/module.h> |
16 | #include <linux/init.h> | 18 | #include <linux/init.h> |
17 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
18 | #include <asm/string.h> | 20 | #include <linux/string.h> |
19 | #include <asm/errno.h> | 21 | #include <linux/errno.h> |
20 | 22 | ||
21 | #include "ieee80211.h" | 23 | #include "ieee80211.h" |
22 | 24 | ||
@@ -66,8 +68,7 @@ void ieee80211_crypt_deinit_handler(unsigned long data) | |||
66 | spin_lock_irqsave(&ieee->lock, flags); | 68 | spin_lock_irqsave(&ieee->lock, flags); |
67 | ieee80211_crypt_deinit_entries(ieee, 0); | 69 | ieee80211_crypt_deinit_entries(ieee, 0); |
68 | if (!list_empty(&ieee->crypt_deinit_list)) { | 70 | if (!list_empty(&ieee->crypt_deinit_list)) { |
69 | printk(KERN_DEBUG "%s: entries remaining in delayed crypt " | 71 | pr_debug("entries remaining in delayed crypt deletion list\n"); |
70 | "deletion list\n", ieee->dev->name); | ||
71 | ieee->crypt_deinit_timer.expires = jiffies + HZ; | 72 | ieee->crypt_deinit_timer.expires = jiffies + HZ; |
72 | add_timer(&ieee->crypt_deinit_timer); | 73 | add_timer(&ieee->crypt_deinit_timer); |
73 | } | 74 | } |
@@ -118,8 +119,7 @@ int ieee80211_register_crypto_ops(struct ieee80211_crypto_ops *ops) | |||
118 | list_add(&alg->list, &hcrypt->algs); | 119 | list_add(&alg->list, &hcrypt->algs); |
119 | spin_unlock_irqrestore(&hcrypt->lock, flags); | 120 | spin_unlock_irqrestore(&hcrypt->lock, flags); |
120 | 121 | ||
121 | printk(KERN_DEBUG "ieee80211_crypt: registered algorithm '%s'\n", | 122 | pr_debug("registered algorithm '%s'\n", ops->name); |
122 | ops->name); | ||
123 | 123 | ||
124 | return 0; | 124 | return 0; |
125 | } | 125 | } |
@@ -146,8 +146,7 @@ int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops) | |||
146 | spin_unlock_irqrestore(&hcrypt->lock, flags); | 146 | spin_unlock_irqrestore(&hcrypt->lock, flags); |
147 | 147 | ||
148 | if (del_alg) { | 148 | if (del_alg) { |
149 | printk(KERN_DEBUG "ieee80211_crypt: unregistered algorithm " | 149 | pr_debug("unregistered algorithm '%s'\n", ops->name); |
150 | "'%s'\n", ops->name); | ||
151 | kfree(del_alg); | 150 | kfree(del_alg); |
152 | } | 151 | } |
153 | 152 | ||
@@ -155,7 +154,7 @@ int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops) | |||
155 | } | 154 | } |
156 | 155 | ||
157 | 156 | ||
158 | struct ieee80211_crypto_ops * ieee80211_get_crypto_ops(const char *name) | 157 | struct ieee80211_crypto_ops *ieee80211_get_crypto_ops(const char *name) |
159 | { | 158 | { |
160 | unsigned long flags; | 159 | unsigned long flags; |
161 | struct list_head *ptr; | 160 | struct list_head *ptr; |
@@ -182,7 +181,7 @@ struct ieee80211_crypto_ops * ieee80211_get_crypto_ops(const char *name) | |||
182 | } | 181 | } |
183 | 182 | ||
184 | 183 | ||
185 | static void * ieee80211_crypt_null_init(int keyidx) { return (void *) 1; } | 184 | static void *ieee80211_crypt_null_init(int keyidx) { return (void *) 1; } |
186 | static void ieee80211_crypt_null_deinit(void *priv) {} | 185 | static void ieee80211_crypt_null_deinit(void *priv) {} |
187 | 186 | ||
188 | static struct ieee80211_crypto_ops ieee80211_crypt_null = { | 187 | static struct ieee80211_crypto_ops ieee80211_crypt_null = { |
@@ -234,9 +233,8 @@ void ieee80211_crypto_deinit(void) | |||
234 | alg = list_entry(ptr, struct ieee80211_crypto_alg, list); | 233 | alg = list_entry(ptr, struct ieee80211_crypto_alg, list); |
235 | if (alg) { | 234 | if (alg) { |
236 | list_del(ptr); | 235 | list_del(ptr); |
237 | printk(KERN_DEBUG | 236 | pr_debug("unregistered algorithm '%s' (deinit)\n", |
238 | "ieee80211_crypt: unregistered algorithm '%s' (deinit)\n", | 237 | alg->ops->name); |
239 | alg->ops->name); | ||
240 | kfree(alg); | 238 | kfree(alg); |
241 | } | 239 | } |
242 | } | 240 | } |