Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e62c413 authored by Magnus Damm's avatar Magnus Damm Committed by Greg Kroah-Hartman
Browse files

serial8250-em: Add DT support



Update the 8250_em driver to support DT.

Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 94e792ab
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -163,9 +163,16 @@ static int __devexit serial8250_em_remove(struct platform_device *pdev)
	return 0;
	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 = {
static struct platform_driver serial8250_em_platform_driver = {
	.driver = {
	.driver = {
		.name		= "serial8250-em",
		.name		= "serial8250-em",
		.of_match_table = serial8250_em_dt_ids,
		.owner		= THIS_MODULE,
		.owner		= THIS_MODULE,
	},
	},
	.probe			= serial8250_em_probe,
	.probe			= serial8250_em_probe,