summaryrefslogtreecommitdiffstats
path: root/drivers/serial/serial_imx.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-03-10 10:41:32 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-14 07:15:44 +0100
commit54cbf39fca9e58c15a9db76f65be989cec7c99c0 (patch)
tree26a8e643976f3ecd8add6a78b573752a9b1b0949 /drivers/serial/serial_imx.c
parentaeaeb40ccf8724c58837ce4817a499f46ebca4a4 (diff)
downloadbarebox-54cbf39fca9e58c15a9db76f65be989cec7c99c0.tar.gz
Introduce console_platform_driver() macro and use it for serial drivers
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial/serial_imx.c')
-rw-r--r--drivers/serial/serial_imx.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/serial/serial_imx.c b/drivers/serial/serial_imx.c
index 3f219ae..8553c2e 100644
--- a/drivers/serial/serial_imx.c
+++ b/drivers/serial/serial_imx.c
@@ -397,11 +397,4 @@ static struct driver_d imx_serial_driver = {
.of_compatible = DRV_OF_COMPAT(imx_serial_dt_ids),
.id_table = imx_serial_ids,
};
-
-static int imx_serial_init(void)
-{
- platform_driver_register(&imx_serial_driver);
- return 0;
-}
-
-console_initcall(imx_serial_init);
+console_platform_driver(imx_serial_driver);