提交 0f2ad9ed 编写于 作者: G Gabor Juhos 提交者: Wim Van Sebroeck

MIPS: ath79: use dynamically allocated watchdog device

Remove the static watchdog device variable and use
the 'platform_device_register_simple' helper to
allocate and register the device in one step.

This allows us to save a few bytes in the kernel image.
Signed-off-by: NGabor Juhos <juhosg@openwrt.org>
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 5071a884
......@@ -101,12 +101,7 @@ void __init ath79_register_uart(void)
}
}
static struct platform_device ath79_wdt_device = {
.name = "ath79-wdt",
.id = -1,
};
void __init ath79_register_wdt(void)
{
platform_device_register(&ath79_wdt_device);
platform_device_register_simple("ath79-wdt", -1, NULL, 0);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册