010-2-qcom-wdt-Do-not-set-dev-in-struct-watchdog_device.patch 860 B

12345678910111213141516171819202122232425
  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. The 'dev' pointer in struct watchdog_device is set by the watchdog core
  6. when registering the watchdog device and not by the driver. It points to
  7. the watchdog device, not its parent.
  8. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  9. Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  10. ---
  11. drivers/watchdog/qcom-wdt.c | 1 -
  12. 1 file changed, 1 deletion(-)
  13. --- a/drivers/watchdog/qcom-wdt.c
  14. +++ b/drivers/watchdog/qcom-wdt.c
  15. @@ -164,7 +164,6 @@ static int qcom_wdt_probe(struct platfor
  16. goto err_clk_unprepare;
  17. }
  18. - wdt->wdd.dev = &pdev->dev;
  19. wdt->wdd.info = &qcom_wdt_info;
  20. wdt->wdd.ops = &qcom_wdt_ops;
  21. wdt->wdd.min_timeout = 1;