Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Magnus Damm and committed by
Greg Kroah-Hartman
3e62c413 94e792ab

+7
+7
drivers/tty/serial/8250/8250_em.c
··· 163 163 return 0; 164 164 } 165 165 166 + static const struct of_device_id serial8250_em_dt_ids[] __devinitconst = { 167 + { .compatible = "renesas,em-uart", }, 168 + {}, 169 + }; 170 + MODULE_DEVICE_TABLE(of, serial8250_em_dt_ids); 171 + 166 172 static struct platform_driver serial8250_em_platform_driver = { 167 173 .driver = { 168 174 .name = "serial8250-em", 175 + .of_match_table = serial8250_em_dt_ids, 169 176 .owner = THIS_MODULE, 170 177 }, 171 178 .probe = serial8250_em_probe,