aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_mpc52xx.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_mpc52xx.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_mpc52xx.c')
-rw-r--r--drivers/ata/pata_mpc52xx.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c
index 3e1746314f22..00748ae1a016 100644
--- a/drivers/ata/pata_mpc52xx.c
+++ b/drivers/ata/pata_mpc52xx.c
@@ -897,26 +897,7 @@ static struct platform_driver mpc52xx_ata_of_platform_driver = {
897 }, 897 },
898}; 898};
899 899
900 900module_platform_driver(mpc52xx_ata_of_platform_driver);
901/* ======================================================================== */
902/* Module */
903/* ======================================================================== */
904
905static int __init
906mpc52xx_ata_init(void)
907{
908 printk(KERN_INFO "ata: MPC52xx IDE/ATA libata driver\n");
909 return platform_driver_register(&mpc52xx_ata_of_platform_driver);
910}
911
912static void __exit
913mpc52xx_ata_exit(void)
914{
915 platform_driver_unregister(&mpc52xx_ata_of_platform_driver);
916}
917
918module_init(mpc52xx_ata_init);
919module_exit(mpc52xx_ata_exit);
920 901
921MODULE_AUTHOR("Sylvain Munaut <tnt@246tNt.com>"); 902MODULE_AUTHOR("Sylvain Munaut <tnt@246tNt.com>");
922MODULE_DESCRIPTION("Freescale MPC52xx IDE/ATA libata driver"); 903MODULE_DESCRIPTION("Freescale MPC52xx IDE/ATA libata driver");