Root/target/linux/brcm63xx/patches-3.3/001-MIPS-BCM63XX-fix-platform_devices-id.patch

1From cbcfe65e357666106c3c6250baf9c5ce33f3e3e3 Mon Sep 17 00:00:00 2001
2From: Florian Fainelli <florian@openwrt.org>
3Date: Wed, 25 Jan 2012 17:39:53 +0100
4Subject: [PATCH 03/63] MIPS: BCM63XX: fix platform_devices id
5
6There is only one watchdog and VoIP DSP platform devices per board, use
7-1 as the platform_device id accordingly.
8
9Signed-off-by: Florian Fainelli <florian@openwrt.org>
10---
11 arch/mips/bcm63xx/dev-dsp.c | 2 +-
12 arch/mips/bcm63xx/dev-wdt.c | 2 +-
13 2 files changed, 2 insertions(+), 2 deletions(-)
14
15--- a/arch/mips/bcm63xx/dev-dsp.c
16+++ b/arch/mips/bcm63xx/dev-dsp.c
17@@ -31,7 +31,7 @@ static struct resource voip_dsp_resource
18 
19 static struct platform_device bcm63xx_voip_dsp_device = {
20     .name = "bcm63xx-voip-dsp",
21- .id = 0,
22+ .id = -1,
23     .num_resources = ARRAY_SIZE(voip_dsp_resources),
24     .resource = voip_dsp_resources,
25 };
26--- a/arch/mips/bcm63xx/dev-wdt.c
27+++ b/arch/mips/bcm63xx/dev-wdt.c
28@@ -21,7 +21,7 @@ static struct resource wdt_resources[] =
29 
30 static struct platform_device bcm63xx_wdt_device = {
31     .name = "bcm63xx-wdt",
32- .id = 0,
33+ .id = -1,
34     .num_resources = ARRAY_SIZE(wdt_resources),
35     .resource = wdt_resources,
36 };
37

Archive Download this file



interactive