Skip to content

Commit

Permalink
serial8250-em: Add DT support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Magnus Damm authored and Greg Kroah-Hartman committed May 9, 2012
1 parent 94e792a commit 3e62c41
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/tty/serial/8250/8250_em.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3e62c41

Please sign in to comment.