aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-08-22 11:03:03 -0400
committerRalf Baechle <ralf@linux-mips.org>2008-10-11 11:18:46 -0400
commitb6e2f58a503b56e154f90dc516647c93c5fe873d (patch)
tree13e4fbed1f5fff91714c9c19ca97d77d94a1455f /arch
parentc76befc3429354909d3242d11b8d3bcb3bea4b03 (diff)
MIPS: RB532: Fix id usage in platform devices
When there is only platform device of the same type, id = -1 should be used, fix this. Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/rb532/devices.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c
index 7090dc97606f..31619c601b11 100644
--- a/arch/mips/rb532/devices.c
+++ b/arch/mips/rb532/devices.c
@@ -84,7 +84,7 @@ static struct korina_device korina_dev0_data = {
84}; 84};
85 85
86static struct platform_device korina_dev0 = { 86static struct platform_device korina_dev0 = {
87 .id = 0, 87 .id = -1,
88 .name = "korina", 88 .name = "korina",
89 .dev.platform_data = &korina_dev0_data, 89 .dev.platform_data = &korina_dev0_data,
90 .resource = korina_dev0_res, 90 .resource = korina_dev0_res,
@@ -108,7 +108,7 @@ static struct cf_device cf_slot0_data = {
108}; 108};
109 109
110static struct platform_device cf_slot0 = { 110static struct platform_device cf_slot0 = {
111 .id = 0, 111 .id = -1,
112 .name = "pata-rb532-cf", 112 .name = "pata-rb532-cf",
113 .dev.platform_data = &cf_slot0_data, 113 .dev.platform_data = &cf_slot0_data,
114 .resource = cf_slot0_res, 114 .resource = cf_slot0_res,
@@ -173,7 +173,7 @@ static struct mtd_partition rb532_partition_info[] = {
173 173
174static struct platform_device rb532_led = { 174static struct platform_device rb532_led = {
175 .name = "rb532-led", 175 .name = "rb532-led",
176 .id = 0, 176 .id = -1,
177}; 177};
178 178
179static struct gpio_keys_button rb532_gpio_btn[] = { 179static struct gpio_keys_button rb532_gpio_btn[] = {