]> git.karo-electronics.de Git - linux-beck.git/commitdiff
watchdog: qcom-wdt: Do not set 'dev' in struct watchdog_device
authorGuenter Roeck <linux@roeck-us.net>
Thu, 24 Dec 2015 22:22:04 +0000 (14:22 -0800)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 28 Dec 2015 22:04:08 +0000 (23:04 +0100)
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>
drivers/watchdog/qcom-wdt.c

index aa7105d32c020841663b6e61c35fefb7a289c4a7..424f9a952fee41d1a95332c3ae4f7682876fef2d 100644 (file)
@@ -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;