diff options
Diffstat (limited to 'drivers/ata/pata_palmld.c')
-rw-r--r-- | drivers/ata/pata_palmld.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ata/pata_palmld.c b/drivers/ata/pata_palmld.c index b86d7e22595e..5ff31b68135c 100644 --- a/drivers/ata/pata_palmld.c +++ b/drivers/ata/pata_palmld.c | |||
@@ -132,20 +132,9 @@ static struct platform_driver palmld_pata_platform_driver = { | |||
132 | .remove = __devexit_p(palmld_pata_remove), | 132 | .remove = __devexit_p(palmld_pata_remove), |
133 | }; | 133 | }; |
134 | 134 | ||
135 | static int __init palmld_pata_init(void) | 135 | module_platform_driver(palmld_pata_platform_driver); |
136 | { | ||
137 | return platform_driver_register(&palmld_pata_platform_driver); | ||
138 | } | ||
139 | |||
140 | static void __exit palmld_pata_exit(void) | ||
141 | { | ||
142 | platform_driver_unregister(&palmld_pata_platform_driver); | ||
143 | } | ||
144 | 136 | ||
145 | MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); | 137 | MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); |
146 | MODULE_DESCRIPTION("PalmLD PATA driver"); | 138 | MODULE_DESCRIPTION("PalmLD PATA driver"); |
147 | MODULE_LICENSE("GPL"); | 139 | MODULE_LICENSE("GPL"); |
148 | MODULE_ALIAS("platform:" DRV_NAME); | 140 | MODULE_ALIAS("platform:" DRV_NAME); |
149 | |||
150 | module_init(palmld_pata_init); | ||
151 | module_exit(palmld_pata_exit); | ||