void da8xx_restart(enum reboot_mode mode, const char *cmd) { struct device *dev; dev = bus_find_device_by_name(&platform_bus_type, NULL, "davinci-wdt"); if (!dev) { pr_err("%s: failed to find watchdog device\n", __func__); return; } davinci_watchdog_reset(to_platform_device(dev)); }
void davinci_restart(enum reboot_mode mode, const char *cmd) { davinci_watchdog_reset(&davinci_wdt_device); }
void davinci_restart(char mode, const char *cmd) { davinci_watchdog_reset(&davinci_wdt_device); }
void arch_reset(char mode) { davinci_watchdog_reset(DAVINCI_WDOG_BASE); }