diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-27 01:44:26 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-01-08 19:14:58 -0500 |
commit | 99c8ea3e57e7b5551ffd9cd401c4bf302b5664e3 (patch) | |
tree | c6bbe0f513651b0fb46db0b39f4dc6732724dbdc /drivers/ata/pata_arasan_cf.c | |
parent | d63e94a442df14c4e7b02763c3230374218b41f1 (diff) |
SATA/PATA: convert drivers/ata/* to use module_platform_driver()
This patch converts the drivers in drivers/ata/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Cc: Viresh Kumar <viresh.kumar@st.com>
Cc: Jeff Garzik <jgarzik@pobox.com>
Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Sylvain Munaut <tnt@246tNt.com>
Cc: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Florian Fainelli <florian@openwrt.org>
Cc: Mark Miesfeld <mmiesfeld@amcc.com>
Cc: Ashish Kalra <ashish.kalra@freescale.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_arasan_cf.c')
-rw-r--r-- | drivers/ata/pata_arasan_cf.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c index e8574bba3ee4..048589fad2ca 100644 --- a/drivers/ata/pata_arasan_cf.c +++ b/drivers/ata/pata_arasan_cf.c | |||
@@ -963,17 +963,7 @@ static struct platform_driver arasan_cf_driver = { | |||
963 | }, | 963 | }, |
964 | }; | 964 | }; |
965 | 965 | ||
966 | static int __init arasan_cf_init(void) | 966 | module_platform_driver(arasan_cf_driver); |
967 | { | ||
968 | return platform_driver_register(&arasan_cf_driver); | ||
969 | } | ||
970 | module_init(arasan_cf_init); | ||
971 | |||
972 | static void __exit arasan_cf_exit(void) | ||
973 | { | ||
974 | platform_driver_unregister(&arasan_cf_driver); | ||
975 | } | ||
976 | module_exit(arasan_cf_exit); | ||
977 | 967 | ||
978 | MODULE_AUTHOR("Viresh Kumar <viresh.kumar@st.com>"); | 968 | MODULE_AUTHOR("Viresh Kumar <viresh.kumar@st.com>"); |
979 | MODULE_DESCRIPTION("Arasan ATA Compact Flash driver"); | 969 | MODULE_DESCRIPTION("Arasan ATA Compact Flash driver"); |