linux-mips
[Top] [All Lists]

[PATCH 1/2] MIPS: BCM63XX: fix platform_devices id

To: ralf@linux-mips.org
Subject: [PATCH 1/2] MIPS: BCM63XX: fix platform_devices id
From: Florian Fainelli <florian@openwrt.org>
Date: Tue, 31 Jan 2012 15:08:07 +0100
Cc: linux-mips@linux-mips.org, Florian Fainelli <florian@openwrt.org>
In-reply-to: <1328018888-5533-1-git-send-email-florian@openwrt.org>
References: <1328018888-5533-1-git-send-email-florian@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
There is only one watchdog and VoIP DSP platform devices per board, use
-1 as the platform_device id accordingly.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
 arch/mips/bcm63xx/dev-dsp.c |    2 +-
 arch/mips/bcm63xx/dev-wdt.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/bcm63xx/dev-dsp.c b/arch/mips/bcm63xx/dev-dsp.c
index da46d1d..5bb5b15 100644
--- a/arch/mips/bcm63xx/dev-dsp.c
+++ b/arch/mips/bcm63xx/dev-dsp.c
@@ -31,7 +31,7 @@ static struct resource voip_dsp_resources[] = {
 
 static struct platform_device bcm63xx_voip_dsp_device = {
        .name           = "bcm63xx-voip-dsp",
-       .id             = 0,
+       .id             = -1,
        .num_resources  = ARRAY_SIZE(voip_dsp_resources),
        .resource       = voip_dsp_resources,
 };
diff --git a/arch/mips/bcm63xx/dev-wdt.c b/arch/mips/bcm63xx/dev-wdt.c
index 3e6c716..2a2346a 100644
--- a/arch/mips/bcm63xx/dev-wdt.c
+++ b/arch/mips/bcm63xx/dev-wdt.c
@@ -21,7 +21,7 @@ static struct resource wdt_resources[] = {
 
 static struct platform_device bcm63xx_wdt_device = {
        .name           = "bcm63xx-wdt",
-       .id             = 0,
+       .id             = -1,
        .num_resources  = ARRAY_SIZE(wdt_resources),
        .resource       = wdt_resources,
 };
-- 
1.7.5.4


<Prev in Thread] Current Thread [Next in Thread>