Do not initialize res->parent for platform device.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
.start = base,
.end = base + 0x20 - 1,
.flags = IORESOURCE_MEM,
.start = base,
.end = base + 0x20 - 1,
.flags = IORESOURCE_MEM,
- .parent = &tx4938_reg_resource,
}, {
.start = irq,
.flags = IORESOURCE_IRQ,
}, {
.start = irq,
.flags = IORESOURCE_IRQ,
.start = base,
.end = base + 0x100 - 1,
.flags = IORESOURCE_MEM,
.start = base,
.end = base + 0x100 - 1,
.flags = IORESOURCE_MEM,
- .parent = &tx4938_reg_resource,
};
struct platform_device *dev =
platform_device_register_simple("txx9wdt", -1, &res, 1);
};
struct platform_device *dev =
platform_device_register_simple("txx9wdt", -1, &res, 1);