summaryrefslogtreecommitdiff
path: root/drivers/watchdog/qcom-wdt.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2015-12-24 14:22:04 -0800
committerWim Van Sebroeck <wim@iguana.be>2015-12-28 23:04:08 +0100
commit0933b453f1c7104d873aacf8524f8ac380a7ed08 (patch)
tree81b6a68e32ba7387051b9ee270bfbee1130751b1 /drivers/watchdog/qcom-wdt.c
parent073523662a821940383eb3bf4064c41b0e3dae0d (diff)
downloadlwn-0933b453f1c7104d873aacf8524f8ac380a7ed08.tar.gz
lwn-0933b453f1c7104d873aacf8524f8ac380a7ed08.zip
watchdog: qcom-wdt: Do not set 'dev' in struct watchdog_device
The 'dev' pointer in struct watchdog_device is set by the watchdog core when registering the watchdog device and not by the driver. It points to the watchdog device, not its parent. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/qcom-wdt.c')
-rw-r--r--drivers/watchdog/qcom-wdt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/watchdog/qcom-wdt.c b/drivers/watchdog/qcom-wdt.c
index aa7105d32c02..424f9a952fee 100644
--- a/drivers/watchdog/qcom-wdt.c
+++ b/drivers/watchdog/qcom-wdt.c
@@ -164,7 +164,6 @@ static int qcom_wdt_probe(struct platform_device *pdev)
goto err_clk_unprepare;
}
- wdt->wdd.dev = &pdev->dev;
wdt->wdd.info = &qcom_wdt_info;
wdt->wdd.ops = &qcom_wdt_ops;
wdt->wdd.min_timeout = 1;