aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap/hostap_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_cs.c')
-rw-r--r--drivers/net/wireless/hostap/hostap_cs.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/net/wireless/hostap/hostap_cs.c b/drivers/net/wireless/hostap/hostap_cs.c
index b6ec51923b20..50033aa7c7d5 100644
--- a/drivers/net/wireless/hostap/hostap_cs.c
+++ b/drivers/net/wireless/hostap/hostap_cs.c
@@ -381,18 +381,15 @@ static void prism2_pccard_genesis_reset(local_info_t *local, int hcr)
381 381
382 res = pcmcia_read_config_byte(hw_priv->link, CISREG_COR, &old_cor); 382 res = pcmcia_read_config_byte(hw_priv->link, CISREG_COR, &old_cor);
383 if (res != 0) { 383 if (res != 0) {
384 printk(KERN_DEBUG "prism2_pccard_genesis_sreset failed 1 " 384 printk(KERN_DEBUG "%s failed 1 (%d)\n", __func__, res);
385 "(%d)\n", res);
386 return; 385 return;
387 } 386 }
388 printk(KERN_DEBUG "prism2_pccard_genesis_sreset: original COR %02x\n", 387 printk(KERN_DEBUG "%s: original COR %02x\n", __func__, old_cor);
389 old_cor);
390 388
391 res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR, 389 res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR,
392 old_cor | COR_SOFT_RESET); 390 old_cor | COR_SOFT_RESET);
393 if (res != 0) { 391 if (res != 0) {
394 printk(KERN_DEBUG "prism2_pccard_genesis_sreset failed 2 " 392 printk(KERN_DEBUG "%s failed 2 (%d)\n", __func__, res);
395 "(%d)\n", res);
396 return; 393 return;
397 } 394 }
398 395
@@ -401,8 +398,7 @@ static void prism2_pccard_genesis_reset(local_info_t *local, int hcr)
401 /* Setup Genesis mode */ 398 /* Setup Genesis mode */
402 res = pcmcia_write_config_byte(hw_priv->link, CISREG_CCSR, hcr); 399 res = pcmcia_write_config_byte(hw_priv->link, CISREG_CCSR, hcr);
403 if (res != 0) { 400 if (res != 0) {
404 printk(KERN_DEBUG "prism2_pccard_genesis_sreset failed 3 " 401 printk(KERN_DEBUG "%s failed 3 (%d)\n", __func__, res);
405 "(%d)\n", res);
406 return; 402 return;
407 } 403 }
408 mdelay(10); 404 mdelay(10);
@@ -410,8 +406,7 @@ static void prism2_pccard_genesis_reset(local_info_t *local, int hcr)
410 res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR, 406 res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR,
411 old_cor & ~COR_SOFT_RESET); 407 old_cor & ~COR_SOFT_RESET);
412 if (res != 0) { 408 if (res != 0) {
413 printk(KERN_DEBUG "prism2_pccard_genesis_sreset failed 4 " 409 printk(KERN_DEBUG "%s failed 4 (%d)\n", __func__, res);
414 "(%d)\n", res);
415 return; 410 return;
416 } 411 }
417 412