]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
serial8250-em: Add DT support
authorMagnus Damm <damm@opensource.se>
Wed, 9 May 2012 06:55:14 +0000 (15:55 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 May 2012 22:11:31 +0000 (15:11 -0700)
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>
drivers/tty/serial/8250/8250_em.c

index be6c28937ecc2a379dc63ba958c30351f9da10ff..3a0363e7f3a7455d0b30ce436c55c4bc77f5652d 100644 (file)
@@ -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,