summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/8250
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2012-05-09 06:55:14 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-09 22:11:31 (GMT)
commit3e62c413fb0c75c8cfaf086d00a9ecc6b55009d6 (patch)
tree75d80e1e25122b6b9f5bf157f7d27dc480f9bf2b /drivers/tty/serial/8250
parent94e792ab66d696aad2e52c91bae4cfbeefe4c9f6 (diff)
downloadlinux-3e62c413fb0c75c8cfaf086d00a9ecc6b55009d6.tar.xz
serial8250-em: Add DT support
Update the 8250_em driver to support DT. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250')
-rw-r--r--drivers/tty/serial/8250/8250_em.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_em.c b/drivers/tty/serial/8250/8250_em.c
index be6c289..3a0363e 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,