[MIPS] TXx9: Cleanup watchdog
Unify registration of txx9wdt platform device. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
a49297e8fc
commit
683147254e
@ -20,6 +20,7 @@
|
||||
#include <linux/clk.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/gpio.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <asm/bootinfo.h>
|
||||
#include <asm/time.h>
|
||||
#include <asm/reboot.h>
|
||||
@ -208,6 +209,17 @@ static void __noreturn txx9_machine_halt(void)
|
||||
}
|
||||
}
|
||||
|
||||
/* Watchdog support */
|
||||
void __init txx9_wdt_init(unsigned long base)
|
||||
{
|
||||
struct resource res = {
|
||||
.start = base,
|
||||
.end = base + 0x100 - 1,
|
||||
.flags = IORESOURCE_MEM,
|
||||
};
|
||||
platform_device_register_simple("txx9wdt", -1, &res, 1);
|
||||
}
|
||||
|
||||
/* wrappers */
|
||||
void __init plat_mem_setup(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user