ipq806x: set v4.9 as default
[openwrt/openwrt.git] / target / linux / ipq806x / patches-4.4 / 010-2-qcom-wdt-Do-not-set-dev-in-struct-watchdog_device.patch
1 From 0933b453f1c7104d873aacf8524f8ac380a7ed08 Mon Sep 17 00:00:00 2001
2 From: Guenter Roeck <linux@roeck-us.net>
3 Date: Thu, 24 Dec 2015 14:22:04 -0800
4 Subject: watchdog: qcom-wdt: Do not set 'dev' in struct watchdog_device
5
6 The 'dev' pointer in struct watchdog_device is set by the watchdog core
7 when registering the watchdog device and not by the driver. It points to
8 the watchdog device, not its parent.
9
10 Signed-off-by: Guenter Roeck <linux@roeck-us.net>
11 Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
12 ---
13 drivers/watchdog/qcom-wdt.c | 1 -
14 1 file changed, 1 deletion(-)
15
16 --- a/drivers/watchdog/qcom-wdt.c
17 +++ b/drivers/watchdog/qcom-wdt.c
18 @@ -164,7 +164,6 @@ static int qcom_wdt_probe(struct platfor
19 goto err_clk_unprepare;
20 }
21
22 - wdt->wdd.dev = &pdev->dev;
23 wdt->wdd.info = &qcom_wdt_info;
24 wdt->wdd.ops = &qcom_wdt_ops;
25 wdt->wdd.min_timeout = 1;