提交 05a96fae 编写于 作者: A Atsushi Nemoto 提交者: Ralf Baechle

[MIPS] rbtx4938: minor cleanup

Do not initialize res->parent for platform device.
Signed-off-by: NAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 6ed43693
...@@ -1026,7 +1026,6 @@ static void __init txx9_spi_init(unsigned long base, int irq) ...@@ -1026,7 +1026,6 @@ static void __init txx9_spi_init(unsigned long base, int irq)
.start = base, .start = base,
.end = base + 0x20 - 1, .end = base + 0x20 - 1,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
.parent = &tx4938_reg_resource,
}, { }, {
.start = irq, .start = irq,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
...@@ -1078,7 +1077,6 @@ static int __init txx9_wdt_init(unsigned long base) ...@@ -1078,7 +1077,6 @@ static int __init txx9_wdt_init(unsigned long base)
.start = base, .start = base,
.end = base + 0x100 - 1, .end = base + 0x100 - 1,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
.parent = &tx4938_reg_resource,
}; };
struct platform_device *dev = struct platform_device *dev =
platform_device_register_simple("txx9wdt", -1, &res, 1); platform_device_register_simple("txx9wdt", -1, &res, 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册