Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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>

authored by

Florian Fainelli and committed by
Ralf Baechle
94c58b7f 76ca4e14

+2 -2
+1 -1
arch/mips/bcm63xx/dev-dsp.c
··· 31 31 32 32 static struct platform_device bcm63xx_voip_dsp_device = { 33 33 .name = "bcm63xx-voip-dsp", 34 - .id = 0, 34 + .id = -1, 35 35 .num_resources = ARRAY_SIZE(voip_dsp_resources), 36 36 .resource = voip_dsp_resources, 37 37 };
+1 -1
arch/mips/bcm63xx/dev-wdt.c
··· 21 21 22 22 static struct platform_device bcm63xx_wdt_device = { 23 23 .name = "bcm63xx-wdt", 24 - .id = 0, 24 + .id = -1, 25 25 .num_resources = ARRAY_SIZE(wdt_resources), 26 26 .resource = wdt_resources, 27 27 };