summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2016-01-04 13:30:47 +0100
committerWim Van Sebroeck <wim@iguana.be>2016-01-11 21:51:28 +0100
commit9ca128a99fa56f006fe6c5801896aea5e00f8479 (patch)
tree6545d0a3b59f1b68cfe70ba964b158e68914e730 /drivers/watchdog
parentwatchdog: add MT7621 watchdog support (diff)
downloadlinux-9ca128a99fa56f006fe6c5801896aea5e00f8479.tar.xz
linux-9ca128a99fa56f006fe6c5801896aea5e00f8479.zip
watchdog: stmp3xxx: Remove unused variables
Commit 8d2fa17151ea3 ("watchdog: stmp3xxx: Stop the watchdog on system halt") introduced the following build warning: drivers/watchdog/stmp3xxx_rtc_wdt.c: In function 'wdt_notify_sys': drivers/watchdog/stmp3xxx_rtc_wdt.c:78:29: warning: unused variable 'pdata' [-Wunused-variable] Remove the unused 'pdata' and 'dev' variables. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/stmp3xxx_rtc_wdt.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/watchdog/stmp3xxx_rtc_wdt.c b/drivers/watchdog/stmp3xxx_rtc_wdt.c
index dbe03725c778..d8b11eb269ad 100644
--- a/drivers/watchdog/stmp3xxx_rtc_wdt.c
+++ b/drivers/watchdog/stmp3xxx_rtc_wdt.c
@@ -74,9 +74,6 @@ static struct watchdog_device stmp3xxx_wdd = {
static int wdt_notify_sys(struct notifier_block *nb, unsigned long code,
void *unused)
{
- struct device *dev = watchdog_get_drvdata(&stmp3xxx_wdd);
- struct stmp3xxx_wdt_pdata *pdata = dev_get_platdata(dev);
-
switch (code) {
case SYS_DOWN: /* keep enabled, system might crash while going down */
break;