Commit e035d8f7 authored by Guenter Roeck's avatar Guenter Roeck Committed by Wim Van Sebroeck

watchdog: sbsa: Drop status function

The watchdog status function is supposed to return WDIOF_ flags,
not internal status flags. The available WDIOF_ flags are now
returned by the watchdog core, so the status function in this driver
is unnecessary.
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 90b826f1
...@@ -180,15 +180,6 @@ static int sbsa_gwdt_keepalive(struct watchdog_device *wdd) ...@@ -180,15 +180,6 @@ static int sbsa_gwdt_keepalive(struct watchdog_device *wdd)
return 0; return 0;
} }
static unsigned int sbsa_gwdt_status(struct watchdog_device *wdd)
{
struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd);
u32 status = readl(gwdt->control_base + SBSA_GWDT_WCS);
/* is the watchdog timer running? */
return (status & SBSA_GWDT_WCS_EN) << WDOG_ACTIVE;
}
static int sbsa_gwdt_start(struct watchdog_device *wdd) static int sbsa_gwdt_start(struct watchdog_device *wdd)
{ {
struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd);
...@@ -228,7 +219,6 @@ static struct watchdog_ops sbsa_gwdt_ops = { ...@@ -228,7 +219,6 @@ static struct watchdog_ops sbsa_gwdt_ops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.start = sbsa_gwdt_start, .start = sbsa_gwdt_start,
.stop = sbsa_gwdt_stop, .stop = sbsa_gwdt_stop,
.status = sbsa_gwdt_status,
.ping = sbsa_gwdt_keepalive, .ping = sbsa_gwdt_keepalive,
.set_timeout = sbsa_gwdt_set_timeout, .set_timeout = sbsa_gwdt_set_timeout,
.get_timeleft = sbsa_gwdt_get_timeleft, .get_timeleft = sbsa_gwdt_get_timeleft,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment