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>
 };
 
 static struct platform_device korina_dev0 = {
-       .id = 0,
+       .id = -1,
        .name = "korina",
        .dev.platform_data = &korina_dev0_data,
        .resource = korina_dev0_res,
 };
 
 static struct platform_device cf_slot0 = {
-       .id = 0,
+       .id = -1,
        .name = "pata-rb532-cf",
        .dev.platform_data = &cf_slot0_data,
        .resource = cf_slot0_res,
 
 static struct platform_device rb532_led = {
        .name = "rb532-led",
-       .id = 0,
+       .id = -1,
 };
 
 static struct gpio_keys_button rb532_gpio_btn[] = {