Commit 94c58b7f authored by Florian Fainelli's avatar Florian Fainelli Committed by Ralf Baechle

MIPS: BCM63XX: Fix platform_devices id

There is only one watchdog and VoIP DSP platform devices per board, use
-1 as the platform_device id accordingly.
Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3313/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 76ca4e14
...@@ -31,7 +31,7 @@ static struct resource voip_dsp_resources[] = { ...@@ -31,7 +31,7 @@ static struct resource voip_dsp_resources[] = {
static struct platform_device bcm63xx_voip_dsp_device = { static struct platform_device bcm63xx_voip_dsp_device = {
.name = "bcm63xx-voip-dsp", .name = "bcm63xx-voip-dsp",
.id = 0, .id = -1,
.num_resources = ARRAY_SIZE(voip_dsp_resources), .num_resources = ARRAY_SIZE(voip_dsp_resources),
.resource = voip_dsp_resources, .resource = voip_dsp_resources,
}; };
......
...@@ -21,7 +21,7 @@ static struct resource wdt_resources[] = { ...@@ -21,7 +21,7 @@ static struct resource wdt_resources[] = {
static struct platform_device bcm63xx_wdt_device = { static struct platform_device bcm63xx_wdt_device = {
.name = "bcm63xx-wdt", .name = "bcm63xx-wdt",
.id = 0, .id = -1,
.num_resources = ARRAY_SIZE(wdt_resources), .num_resources = ARRAY_SIZE(wdt_resources),
.resource = wdt_resources, .resource = wdt_resources,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment