[PATCH 1/3] watchdog: Make w83697h_wdt void-like functions void

From: Samuel Tardieu
Date: Wed Mar 12 2008 - 16:34:54 EST


Some non-exported functions always returned 0. Mark them void instead.

Signed-off-by: Samuel Tardieu <sam@xxxxxxxxxxx>
---
drivers/watchdog/w83697hf_wdt.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/watchdog/w83697hf_wdt.c b/drivers/watchdog/w83697hf_wdt.c
index c622a0e..b534174 100644
--- a/drivers/watchdog/w83697hf_wdt.c
+++ b/drivers/watchdog/w83697hf_wdt.c
@@ -140,7 +140,7 @@ w83697hf_init(void)
w83697hf_deselect_wdt();
}

-static int
+static void
wdt_ping(void)
{
spin_lock(&io_lock);
@@ -150,10 +150,9 @@ wdt_ping(void)

w83697hf_deselect_wdt();
spin_unlock(&io_lock);
- return 0;
}

-static int
+static void
wdt_enable(void)
{
spin_lock(&io_lock);
@@ -164,10 +163,9 @@ wdt_enable(void)

w83697hf_deselect_wdt();
spin_unlock(&io_lock);
- return 0;
}

-static int
+static void
wdt_disable(void)
{
spin_lock(&io_lock);
@@ -178,7 +176,6 @@ wdt_disable(void)

w83697hf_deselect_wdt();
spin_unlock(&io_lock);
- return 0;
}

static int
--
1.5.4.3.611.g29c00.dirty

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/