aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_palmld.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-27 01:44:26 -0500
committerJeff Garzik <jgarzik@redhat.com>2012-01-08 19:14:58 -0500
commit99c8ea3e57e7b5551ffd9cd401c4bf302b5664e3 (patch)
treec6bbe0f513651b0fb46db0b39f4dc6732724dbdc /drivers/ata/pata_palmld.c
parentd63e94a442df14c4e7b02763c3230374218b41f1 (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_palmld.c')
-rw-r--r--drivers/ata/pata_palmld.c13
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
135static int __init palmld_pata_init(void) 135module_platform_driver(palmld_pata_platform_driver);
136{
137 return platform_driver_register(&palmld_pata_platform_driver);
138}
139
140static void __exit palmld_pata_exit(void)
141{
142 platform_driver_unregister(&palmld_pata_platform_driver);
143}
144 136
145MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); 137MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>");
146MODULE_DESCRIPTION("PalmLD PATA driver"); 138MODULE_DESCRIPTION("PalmLD PATA driver");
147MODULE_LICENSE("GPL"); 139MODULE_LICENSE("GPL");
148MODULE_ALIAS("platform:" DRV_NAME); 140MODULE_ALIAS("platform:" DRV_NAME);
149
150module_init(palmld_pata_init);
151module_exit(palmld_pata_exit);