]> err.no Git - linux-2.6/commitdiff
[ARM] 3391/1: use PLAT8250_DEV_PLATFORM{,1} for platform device id instead of 0/1
authorLennert Buytenhek <buytenh@wantstofly.org>
Thu, 23 Mar 2006 12:59:08 +0000 (12:59 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 23 Mar 2006 12:59:08 +0000 (12:59 +0000)
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>
arch/arm/mach-iop3xx/iop331-setup.c
arch/arm/mach-omap2/serial.c

index 2d6abe5be14df2a8e41dd8f8c3ee1ec39c0df582..7b7b6eea38469198b7de3454877d4f49f248fb9f 100644 (file)
@@ -103,7 +103,7 @@ 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,
@@ -111,7 +111,7 @@ static struct platform_device iop33x_uart0 = {
 
 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,
index 24dd374224afaa8741c72d1d7c0dcf520a605fe6..0884bc7c23b7f31635266ff8a10c0c15cb701e61 100644 (file)
@@ -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,
        },