diff options
Diffstat (limited to 'drivers/ata/pata_imx.c')
-rw-r--r-- | drivers/ata/pata_imx.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c index ca9d9caedfa3..c5af97f5107b 100644 --- a/drivers/ata/pata_imx.c +++ b/drivers/ata/pata_imx.c | |||
@@ -235,17 +235,7 @@ static struct platform_driver pata_imx_driver = { | |||
235 | }, | 235 | }, |
236 | }; | 236 | }; |
237 | 237 | ||
238 | static int __init pata_imx_init(void) | 238 | module_platform_driver(pata_imx_driver); |
239 | { | ||
240 | return platform_driver_register(&pata_imx_driver); | ||
241 | } | ||
242 | |||
243 | static void __exit pata_imx_exit(void) | ||
244 | { | ||
245 | platform_driver_unregister(&pata_imx_driver); | ||
246 | } | ||
247 | module_init(pata_imx_init); | ||
248 | module_exit(pata_imx_exit); | ||
249 | 239 | ||
250 | MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); | 240 | MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); |
251 | MODULE_DESCRIPTION("low-level driver for iMX PATA"); | 241 | MODULE_DESCRIPTION("low-level driver for iMX PATA"); |