Skip to content

Commit

Permalink
MIPS: RB532: Fix id usage in platform devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed Oct 11, 2008
1 parent c76befc commit b6e2f58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/mips/rb532/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static struct korina_device korina_dev0_data = {
};

static struct platform_device korina_dev0 = {
.id = 0,
.id = -1,
.name = "korina",
.dev.platform_data = &korina_dev0_data,
.resource = korina_dev0_res,
Expand All @@ -108,7 +108,7 @@ static struct cf_device cf_slot0_data = {
};

static struct platform_device cf_slot0 = {
.id = 0,
.id = -1,
.name = "pata-rb532-cf",
.dev.platform_data = &cf_slot0_data,
.resource = cf_slot0_res,
Expand Down Expand Up @@ -173,7 +173,7 @@ static struct mtd_partition rb532_partition_info[] = {

static struct platform_device rb532_led = {
.name = "rb532-led",
.id = 0,
.id = -1,
};

static struct gpio_keys_button rb532_gpio_btn[] = {
Expand Down

0 comments on commit b6e2f58

Please sign in to comment.