diff options
Diffstat (limited to 'drivers/net/wireless/p54')
-rw-r--r-- | drivers/net/wireless/p54/p54spi.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c index 978e7eb26567..146e6530ae29 100644 --- a/drivers/net/wireless/p54/p54spi.c +++ b/drivers/net/wireless/p54/p54spi.c | |||
@@ -713,27 +713,7 @@ static struct spi_driver p54spi_driver = { | |||
713 | .remove = p54spi_remove, | 713 | .remove = p54spi_remove, |
714 | }; | 714 | }; |
715 | 715 | ||
716 | static int __init p54spi_init(void) | 716 | module_spi_driver(p54spi_driver); |
717 | { | ||
718 | int ret; | ||
719 | |||
720 | ret = spi_register_driver(&p54spi_driver); | ||
721 | if (ret < 0) { | ||
722 | printk(KERN_ERR "failed to register SPI driver: %d", ret); | ||
723 | goto out; | ||
724 | } | ||
725 | |||
726 | out: | ||
727 | return ret; | ||
728 | } | ||
729 | |||
730 | static void __exit p54spi_exit(void) | ||
731 | { | ||
732 | spi_unregister_driver(&p54spi_driver); | ||
733 | } | ||
734 | |||
735 | module_init(p54spi_init); | ||
736 | module_exit(p54spi_exit); | ||
737 | 717 | ||
738 | MODULE_LICENSE("GPL"); | 718 | MODULE_LICENSE("GPL"); |
739 | MODULE_AUTHOR("Christian Lamparter <chunkeey@web.de>"); | 719 | MODULE_AUTHOR("Christian Lamparter <chunkeey@web.de>"); |