提交 7f8cd80f 编写于 作者: K Kumar Gala 提交者: Linus Torvalds

[PATCH] ppc32: Fix platform device initialization of 8250 serial ports

Initialization of 8250 serial ports that are platform devices require that
at empty entry exists in the array of plat_serial8250_port.  With out an
empty entry we can get some pretty random behavior.
Signed-off-by: NKumar Gala <kumar.gala@freescale.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 84ddaa8c
...@@ -61,6 +61,7 @@ static struct plat_serial8250_port serial_platform_data[] = { ...@@ -61,6 +61,7 @@ static struct plat_serial8250_port serial_platform_data[] = {
.iotype = UPIO_MEM, .iotype = UPIO_MEM,
.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
}, },
{ },
}; };
struct platform_device ppc_sys_platform_devices[] = { struct platform_device ppc_sys_platform_devices[] = {
......
...@@ -61,6 +61,7 @@ static struct plat_serial8250_port serial_platform_data[] = { ...@@ -61,6 +61,7 @@ static struct plat_serial8250_port serial_platform_data[] = {
.iotype = UPIO_MEM, .iotype = UPIO_MEM,
.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ, .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ,
}, },
{ },
}; };
struct platform_device ppc_sys_platform_devices[] = { struct platform_device ppc_sys_platform_devices[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册