aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/spi.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2011-07-08 11:03:36 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-08 11:03:36 -0400
commit204d1641d200709c759d8c269458cbc7de378c40 (patch)
treece88690b4422078883f1651537ccd1f5d8ed7258 /drivers/net/wireless/wl12xx/spi.c
parent31817df025e24559a01d33ddd68bd11b21bf9d7b (diff)
parent5f0dd296a01c8173fcc05a8b262a1168ae90bc74 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Diffstat (limited to 'drivers/net/wireless/wl12xx/spi.c')
-rw-r--r--drivers/net/wireless/wl12xx/spi.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/wireless/wl12xx/spi.c b/drivers/net/wireless/wl12xx/spi.c
index beebf64c5359..e0b3736d7e19 100644
--- a/drivers/net/wireless/wl12xx/spi.c
+++ b/drivers/net/wireless/wl12xx/spi.c
@@ -436,8 +436,6 @@ static int __devinit wl1271_probe(struct spi_device *spi)
436 if (ret) 436 if (ret)
437 goto out_irq; 437 goto out_irq;
438 438
439 wl1271_notice("initialized");
440
441 return 0; 439 return 0;
442 440
443 out_irq: 441 out_irq:
@@ -474,23 +472,12 @@ static struct spi_driver wl1271_spi_driver = {
474 472
475static int __init wl1271_init(void) 473static int __init wl1271_init(void)
476{ 474{
477 int ret; 475 return spi_register_driver(&wl1271_spi_driver);
478
479 ret = spi_register_driver(&wl1271_spi_driver);
480 if (ret < 0) {
481 wl1271_error("failed to register spi driver: %d", ret);
482 goto out;
483 }
484
485out:
486 return ret;
487} 476}
488 477
489static void __exit wl1271_exit(void) 478static void __exit wl1271_exit(void)
490{ 479{
491 spi_unregister_driver(&wl1271_spi_driver); 480 spi_unregister_driver(&wl1271_spi_driver);
492
493 wl1271_notice("unloaded");
494} 481}
495 482
496module_init(wl1271_init); 483module_init(wl1271_init);