From 3e62c413fb0c75c8cfaf086d00a9ecc6b55009d6 Mon Sep 17 00:00:00 2001 From: Magnus Damm Date: Wed, 9 May 2012 15:55:14 +0900 Subject: [PATCH] serial8250-em: Add DT support Update the 8250_em driver to support DT. Signed-off-by: Magnus Damm Acked-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/8250/8250_em.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/tty/serial/8250/8250_em.c b/drivers/tty/serial/8250/8250_em.c index be6c28937ecc..3a0363e7f3a7 100644 --- a/drivers/tty/serial/8250/8250_em.c +++ b/drivers/tty/serial/8250/8250_em.c @@ -163,9 +163,16 @@ static int __devexit serial8250_em_remove(struct platform_device *pdev) return 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, -- 2.34.1