static int jz4740_wdt_stop(struct watchdog_device *wdt_dev) { struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); jz4740_timer_disable_watchdog(); writeb(0x0, drvdata->base + JZ_REG_WDT_COUNTER_ENABLE); return 0; }
static void jz4740_wdt_disable(void) { jz4740_timer_disable_watchdog(); writeb(0x0, jz4740_wdt.base + JZ_REG_WDT_COUNTER_ENABLE); }