Skip to content

Commit

Permalink
[PATCH] ppc32: Fix platform device initialization of 8250 serial ports
Browse files Browse the repository at this point in the history
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: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Kumar Gala authored and Linus Torvalds committed May 20, 2005
1 parent 84ddaa8 commit 7f8cd80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/ppc/syslib/mpc83xx_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ static struct plat_serial8250_port serial_platform_data[] = {
.iotype = UPIO_MEM,
.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
},
{ },
};

struct platform_device ppc_sys_platform_devices[] = {
Expand Down
1 change: 1 addition & 0 deletions arch/ppc/syslib/mpc85xx_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ static struct plat_serial8250_port serial_platform_data[] = {
.iotype = UPIO_MEM,
.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ,
},
{ },
};

struct platform_device ppc_sys_platform_devices[] = {
Expand Down

0 comments on commit 7f8cd80

Please sign in to comment.