diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-04 20:39:47 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2013-04-03 19:52:10 -0400 |
commit | bdfa2e7e5a46d7dcd9ff127fdf198faf90f0e215 (patch) | |
tree | 9365f5cbcf5ce760f0ed0f1053068548a364321e | |
parent | 6d3bfc7be6f80d0c6ee6800d58d573343bf6e260 (diff) |
pata_at32: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r-- | drivers/ata/pata_at32.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c index 36f189c7ee8c..8d493b4a0961 100644 --- a/drivers/ata/pata_at32.c +++ b/drivers/ata/pata_at32.c | |||
@@ -393,18 +393,7 @@ static struct platform_driver pata_at32_driver = { | |||
393 | }, | 393 | }, |
394 | }; | 394 | }; |
395 | 395 | ||
396 | static int __init pata_at32_init(void) | 396 | module_platform_driver_probe(pata_at32_driver, pata_at32_probe); |
397 | { | ||
398 | return platform_driver_probe(&pata_at32_driver, pata_at32_probe); | ||
399 | } | ||
400 | |||
401 | static void __exit pata_at32_exit(void) | ||
402 | { | ||
403 | platform_driver_unregister(&pata_at32_driver); | ||
404 | } | ||
405 | |||
406 | module_init(pata_at32_init); | ||
407 | module_exit(pata_at32_exit); | ||
408 | 397 | ||
409 | MODULE_LICENSE("GPL"); | 398 | MODULE_LICENSE("GPL"); |
410 | MODULE_DESCRIPTION("AVR32 SMC/CFC PATA Driver"); | 399 | MODULE_DESCRIPTION("AVR32 SMC/CFC PATA Driver"); |