提交 82702ea1 编写于 作者: T Tony Lindgren

ARM: OMAP2+: Fix serial init for device tree based booting

We don't want to call omap_serial_early_init() for device
tree based booting as the ports are initialized based on
the .dts entries.
Reviewed-by: NKevin Hilman <khilman@linaro.org>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 415ab328
...@@ -176,6 +176,9 @@ static char *cmdline_find_option(char *str) ...@@ -176,6 +176,9 @@ static char *cmdline_find_option(char *str)
static int __init omap_serial_early_init(void) static int __init omap_serial_early_init(void)
{ {
if (of_have_populated_dt())
return -ENODEV;
do { do {
char oh_name[MAX_UART_HWMOD_NAME_LEN]; char oh_name[MAX_UART_HWMOD_NAME_LEN];
struct omap_hwmod *oh; struct omap_hwmod *oh;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册