From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 21 Aug 2008 23:17:01 +0100 (BST) Received: from smtp4.int-evry.fr ([157.159.10.71]:48361 "EHLO smtp4.int-evry.fr") by ftp.linux-mips.org with ESMTP id S28587056AbYHUWQ1 (ORCPT ); Thu, 21 Aug 2008 23:16:27 +0100 Received: from smtp2.int-evry.fr (smtp2.int-evry.fr [157.159.10.45]) by smtp4.int-evry.fr (Postfix) with ESMTP id 0F364FE2E23; Fri, 22 Aug 2008 00:16:22 +0200 (CEST) Received: from smtp-ext.int-evry.fr (smtp-ext.int-evry.fr [157.159.11.17]) by smtp2.int-evry.fr (Postfix) with ESMTP id 3F3C73F00F4; Fri, 22 Aug 2008 00:15:49 +0200 (CEST) Received: from lenovo.mimichou.home (florian.mimichou.net [82.241.112.26]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-ext.int-evry.fr (Postfix) with ESMTP id 0E12190004; Fri, 22 Aug 2008 00:15:49 +0200 (CEST) From: Florian Fainelli Date: Fri, 22 Aug 2008 00:15:47 +0200 Subject: [PATCH 6/6] rb532: fix id usage MIME-Version: 1.0 X-Length: 1758 To: "linux-mips" Cc: ralf@linux-mips.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808220015.48022.florian@openwrt.org> X-INT-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 3F3C73F00F4.1E76E X-INT-MailScanner: Found to be clean X-INT-MailScanner-SpamCheck: X-INT-MailScanner-From: florian@openwrt.org Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 20315 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: florian@openwrt.org Precedence: bulk X-list: linux-mips When there is only platform device of the same type, id = -1 should be used, fix this. Signed-off-by: Florian Fainelli --- diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c index 7b91d69..3007357 100644 --- a/arch/mips/rb532/devices.c +++ b/arch/mips/rb532/devices.c @@ -90,7 +90,7 @@ static struct korina_device korina_dev0_data = { }; static struct platform_device korina_dev0 = { - .id = 0, + .id = -1, .name = "korina", .dev.platform_data = &korina_dev0_data, .resource = korina_dev0_res, @@ -114,7 +114,7 @@ static struct cf_device cf_slot0_data = { }; static struct platform_device cf_slot0 = { - .id = 0, + .id = -1, .name = "pata-rb532-cf", .dev.platform_data = &cf_slot0_data, .resource = cf_slot0_res, @@ -179,7 +179,7 @@ static struct mtd_partition rb532_partition_info[] = { static struct platform_device rb532_led = { .name = "rb532-led", - .id = 0, + .id = -1, }; static struct gpio_keys_button rb532_gpio_btn[] = {