diff options
Diffstat (limited to 'drivers/tty/serial/max3100.c')
-rw-r--r-- | drivers/tty/serial/max3100.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/tty/serial/max3100.c b/drivers/tty/serial/max3100.c index b4902b99cfd2..46043c2521ce 100644 --- a/drivers/tty/serial/max3100.c +++ b/drivers/tty/serial/max3100.c | |||
@@ -910,17 +910,7 @@ static struct spi_driver max3100_driver = { | |||
910 | .resume = max3100_resume, | 910 | .resume = max3100_resume, |
911 | }; | 911 | }; |
912 | 912 | ||
913 | static int __init max3100_init(void) | 913 | module_spi_driver(max3100_driver); |
914 | { | ||
915 | return spi_register_driver(&max3100_driver); | ||
916 | } | ||
917 | module_init(max3100_init); | ||
918 | |||
919 | static void __exit max3100_exit(void) | ||
920 | { | ||
921 | spi_unregister_driver(&max3100_driver); | ||
922 | } | ||
923 | module_exit(max3100_exit); | ||
924 | 914 | ||
925 | MODULE_DESCRIPTION("MAX3100 driver"); | 915 | MODULE_DESCRIPTION("MAX3100 driver"); |
926 | MODULE_AUTHOR("Christian Pellegrin <chripell@evolware.org>"); | 916 | MODULE_AUTHOR("Christian Pellegrin <chripell@evolware.org>"); |