watchdog: orion_wdt: add wdt status init for handle_boot_enabled
PATCH 1/1 watchdog: orion_wdt: add wdt status init for handle_boot_enabled
This patch add init of wdt.status for CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED
Signed-off-by Maxim Kochetkov <[email protected]>
---
drivers/watchdog/orion_wdt.c renamed from drivers/watchdog/orion_wdt.c.orig +2 -0
@@ -581,6 +581,8 @@ static int orion_wdt_probe(struct platfo*/ if (!orion_wdt_enabled (&dev->wdt))orion_wdt_stop (&dev->wdt); +else +set_bit (WDOG_HW_RUNNING , &dev->wdt.status);/* Request the IRQ only after the watchdog is disabled */ irq =platform_get_irq (pdev,0 );
Guenter Roeck
maintainerQuoted 7 lines · Кочетков Максим
This patch add init of wdt.status for
CONFIG_WATCHDOG_HANDLE_BOOT_ENABLEDSigned-off-by Maxim Kochetkov <[email protected]>---
drivers/watchdog/orion_wdt.c static int orion_wdt_probe(struct platfo · line 588
Quoted 8 lines
drivers/watchdog/orion_wdt.c renamed from drivers/watchdog/orion_wdt.c.orig +2
-0@@ -581,6 +581,8 @@ static int orion_wdt_probe(struct platfo */ if (!orion_wdt_enabled(&dev->wdt)) orion_wdt_stop(&dev->wdt); + else + set_bit(WDOG_HW_RUNNING, &dev->wdt.status); /* Request the IRQ only after the watchdog is disabled */ irq = platform_get_irq(pdev, 0);N?????r??y????b?X??ǧv?^?){.n?+????{???\?? ?{ay?ʇڙ?,j??f???h???z??w??????j:+v???w?j?m????????zZ+?????ݢj"??!
Corrupted patch.
Guenter