summaryrefslogtreecommitdiffstats
path: root/drivers/mci/imx-esdhc.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-02-12 22:08:57 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-13 09:23:28 +0100
commit6a256321b839534cb3da4b8ffc06c126871a78e3 (patch)
tree0af3a40fc1fa2892b8cab21085e559e4dc56a91d /drivers/mci/imx-esdhc.c
parent12ff7635353503e90ffbfe2f69436e4725a64b50 (diff)
downloadbarebox-6a256321b839534cb3da4b8ffc06c126871a78e3.tar.gz
barebox-6a256321b839534cb3da4b8ffc06c126871a78e3.tar.xz
Use new device_platform_driver() macro for drivers
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/imx-esdhc.c')
-rw-r--r--drivers/mci/imx-esdhc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/mci/imx-esdhc.c b/drivers/mci/imx-esdhc.c
index aad1b8696..8c2695cde 100644
--- a/drivers/mci/imx-esdhc.c
+++ b/drivers/mci/imx-esdhc.c
@@ -583,11 +583,4 @@ static struct driver_d fsl_esdhc_driver = {
.probe = fsl_esdhc_probe,
.of_compatible = DRV_OF_COMPAT(fsl_esdhc_compatible),
};
-
-static int fsl_esdhc_init_driver(void)
-{
- platform_driver_register(&fsl_esdhc_driver);
- return 0;
-}
-
-device_initcall(fsl_esdhc_init_driver);
+device_platform_driver(fsl_esdhc_driver);