summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata-imx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata-imx.c')
-rw-r--r--drivers/ata/pata-imx.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/ata/pata-imx.c b/drivers/ata/pata-imx.c
index 202f537569..5d44883453 100644
--- a/drivers/ata/pata-imx.c
+++ b/drivers/ata/pata-imx.c
@@ -194,10 +194,4 @@ static struct driver_d imx_pata_driver = {
.name = "imx-pata",
.probe = imx_pata_probe,
};
-
-static int imx_pata_init(void)
-{
- return platform_driver_register(&imx_pata_driver);
-}
-
-device_initcall(imx_pata_init);
+device_platform_driver(imx_pata_driver);