Skip to content

Commit

Permalink
[ARM] 3391/1: use PLAT8250_DEV_PLATFORM{,1} for platform device id in…
Browse files Browse the repository at this point in the history
…stead of 0/1

Patch from Lennert Buytenhek

This patch changes iop3xx and omap2 and to use PLAT8250_DEV_PLATFORM{,1}
as platform device id instead of just hardcoding 0/1 directly.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Mar 23, 2006
1 parent 2e6e33b commit 7d42089
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-iop3xx/iop331-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ static struct plat_serial8250_port iop33x_uart1_data[] = {

static struct platform_device iop33x_uart0 = {
.name = "serial8250",
.id = 0,
.id = PLAT8250_DEV_PLATFORM,
.dev.platform_data = iop33x_uart0_data,
.num_resources = 2,
.resource = iop33x_uart0_resources,
};

static struct platform_device iop33x_uart1 = {
.name = "serial8250",
.id = 1,
.id = PLAT8250_DEV_PLATFORM1,
.dev.platform_data = iop33x_uart1_data,
.num_resources = 2,
.resource = iop33x_uart1_resources,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void __init omap_serial_init()

static struct platform_device serial_device = {
.name = "serial8250",
.id = 0,
.id = PLAT8250_DEV_PLATFORM,
.dev = {
.platform_data = serial_platform_data,
},
Expand Down

0 comments on commit 7d42089

Please sign in to comment.