MIPS: BCM63XX: Fix platform_devices id
authorFlorian Fainelli <florian@openwrt.org>
Tue, 24 Jul 2012 14:33:09 +0000 (16:33 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 24 Jul 2012 14:33:09 +0000 (16:33 +0200)
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>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3313/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/bcm63xx/dev-dsp.c
arch/mips/bcm63xx/dev-wdt.c

index da46d1d3c77cf7e1fc5888e0a2d39e9ce7f24eed..5bb5b154c9bd3cb4aec195f3c1e991b6011d8e96 100644 (file)
@@ -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,
 };
index 3e6c716a4c11b890df34168251c5a611ff56a9af..2a2346a99bcb16d7250dc1c332a3ac339546ccc5 100644 (file)
@@ -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,
 };