aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_fsl.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/sata_fsl.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/sata_fsl.c')
-rw-r--r--drivers/ata/sata_fsl.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c
index 78ae7b67b09e..5a2c95ba050a 100644
--- a/drivers/ata/sata_fsl.c
+++ b/drivers/ata/sata_fsl.c
@@ -1452,21 +1452,9 @@ static struct platform_driver fsl_sata_driver = {
1452#endif 1452#endif
1453}; 1453};
1454 1454
1455static int __init sata_fsl_init(void) 1455module_platform_driver(fsl_sata_driver);
1456{
1457 platform_driver_register(&fsl_sata_driver);
1458 return 0;
1459}
1460
1461static void __exit sata_fsl_exit(void)
1462{
1463 platform_driver_unregister(&fsl_sata_driver);
1464}
1465 1456
1466MODULE_LICENSE("GPL"); 1457MODULE_LICENSE("GPL");
1467MODULE_AUTHOR("Ashish Kalra, Freescale Semiconductor"); 1458MODULE_AUTHOR("Ashish Kalra, Freescale Semiconductor");
1468MODULE_DESCRIPTION("Freescale 3.0Gbps SATA controller low level driver"); 1459MODULE_DESCRIPTION("Freescale 3.0Gbps SATA controller low level driver");
1469MODULE_VERSION("1.10"); 1460MODULE_VERSION("1.10");
1470
1471module_init(sata_fsl_init);
1472module_exit(sata_fsl_exit);