aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/watchdog_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/watchdog_dev.c')
-rw-r--r--drivers/watchdog/watchdog_dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c
index 6c18a58cfd17..930cc7c87457 100644
--- a/drivers/watchdog/watchdog_dev.c
+++ b/drivers/watchdog/watchdog_dev.c
@@ -61,7 +61,7 @@ static struct watchdog_device *wdd;
61 61
62static int watchdog_ping(struct watchdog_device *wddev) 62static int watchdog_ping(struct watchdog_device *wddev)
63{ 63{
64 if (test_bit(WDOG_ACTIVE, &wddev->status)) { 64 if (watchdog_active(wddev)) {
65 if (wddev->ops->ping) 65 if (wddev->ops->ping)
66 return wddev->ops->ping(wddev); /* ping the watchdog */ 66 return wddev->ops->ping(wddev); /* ping the watchdog */
67 else 67 else
@@ -83,7 +83,7 @@ static int watchdog_start(struct watchdog_device *wddev)
83{ 83{
84 int err; 84 int err;
85 85
86 if (!test_bit(WDOG_ACTIVE, &wddev->status)) { 86 if (!watchdog_active(wddev)) {
87 err = wddev->ops->start(wddev); 87 err = wddev->ops->start(wddev);
88 if (err < 0) 88 if (err < 0)
89 return err; 89 return err;
@@ -113,7 +113,7 @@ static int watchdog_stop(struct watchdog_device *wddev)
113 return err; 113 return err;
114 } 114 }
115 115
116 if (test_bit(WDOG_ACTIVE, &wddev->status)) { 116 if (watchdog_active(wddev)) {
117 err = wddev->ops->stop(wddev); 117 err = wddev->ops->stop(wddev);
118 if (err < 0) 118 if (err < 0)
119 return err; 119 return err;