From a491ec7b5a8c66c6a7bd3fad8cfa3c46a237416f Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 4 Dec 2008 15:58:04 +0000 Subject: [PATCH] MIPS: Malta: Fix build of platform device code. Signed-off-by: Ralf Baechle --- arch/mips/mti-malta/malta-platform.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/mips/mti-malta/malta-platform.c b/arch/mips/mti-malta/malta-platform.c index 37598c3229e..72e32a7715b 100644 --- a/arch/mips/mti-malta/malta-platform.c +++ b/arch/mips/mti-malta/malta-platform.c @@ -58,7 +58,7 @@ static struct plat_serial8250_port uart8250_data[] = { static struct platform_device malta_uart8250_device = { .name = "serial8250", - .id = PLAT8250_DEV_PLATFORM2, + .id = PLAT8250_DEV_PLATFORM, .dev = { .platform_data = uart8250_data, }, @@ -113,7 +113,7 @@ static struct resource malta_flash_resource = { .flags = IORESOURCE_MEM }; -static struct platform_device malta_flash = { +static struct platform_device malta_flash_device = { .name = "physmap-flash", .id = 0, .dev = { @@ -123,13 +123,6 @@ static struct platform_device malta_flash = { .resource = &malta_flash_resource, }; -static int __init malta_mtd_init(void) -{ - platform_device_register(&malta_flash); - - return 0; -} - static struct platform_device *malta_devices[] __initdata = { &malta_uart8250_device, &malta_rtc_device, -- 2.11.4.GIT