Commit b6e2f58a authored by Florian Fainelli's avatar Florian Fainelli Committed by Ralf Baechle

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: default avatarFlorian Fainelli <florian@openwrt.org>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent c76befc3
...@@ -84,7 +84,7 @@ static struct korina_device korina_dev0_data = { ...@@ -84,7 +84,7 @@ static struct korina_device korina_dev0_data = {
}; };
static struct platform_device korina_dev0 = { static struct platform_device korina_dev0 = {
.id = 0, .id = -1,
.name = "korina", .name = "korina",
.dev.platform_data = &korina_dev0_data, .dev.platform_data = &korina_dev0_data,
.resource = korina_dev0_res, .resource = korina_dev0_res,
...@@ -108,7 +108,7 @@ static struct cf_device cf_slot0_data = { ...@@ -108,7 +108,7 @@ static struct cf_device cf_slot0_data = {
}; };
static struct platform_device cf_slot0 = { static struct platform_device cf_slot0 = {
.id = 0, .id = -1,
.name = "pata-rb532-cf", .name = "pata-rb532-cf",
.dev.platform_data = &cf_slot0_data, .dev.platform_data = &cf_slot0_data,
.resource = cf_slot0_res, .resource = cf_slot0_res,
...@@ -173,7 +173,7 @@ static struct mtd_partition rb532_partition_info[] = { ...@@ -173,7 +173,7 @@ static struct mtd_partition rb532_partition_info[] = {
static struct platform_device rb532_led = { static struct platform_device rb532_led = {
.name = "rb532-led", .name = "rb532-led",
.id = 0, .id = -1,
}; };
static struct gpio_keys_button rb532_gpio_btn[] = { static struct gpio_keys_button rb532_gpio_btn[] = {
......
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