serial8250-em: Add DT support
Subsystems (2)
PATCH 1/1 serial8250-em: Add DT support
From: Magnus Damm <[email protected]>
Update the 8250_em driver to support DT.
Signed-off-by Magnus Damm <[email protected]>
---
Applies of top of "[PATCH] serial8250-em: Emma Mobile UART driver V2" (included in linux-next 20120508) and the recently posted "[PATCH] serial8250-em: clk_get() IS_ERR() error handling fix".
drivers/tty/serial/8250/8250_em.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/tty/serial/8250/8250_em.c +7 -0
@@ -163,9 +163,16 @@ static int __devexit serial8250_em_removreturn 0 ; } +static const struct of_device_id serial8250_em_dt_ids[]__devinitconst = { + { .compatible ="renesas,em-uart" , }, + {}, +}; +MODULE_DEVICE_TABLE (of, serial8250_em_dt_ids); +static struct platform_driver serial8250_em_platform_driver = { .driver = { .name ="serial8250-em" , + .of_match_table = serial8250_em_dt_ids, .owner =THIS_MODULE , }, .probe = serial8250_em_probe,
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Update the 8250_em driver to support DT.
Signed-off-by Magnus Damm <[email protected]>
Acked-by Arnd Bergmann <[email protected]>