Skip to content
Commit c43a2083 authored by Shuiqing Li's avatar Shuiqing Li Committed by Paul Gortmaker
Browse files

watchdog: sprd: Fix the incorrect pointer getting from driver data



commit 39e68d9e upstream.

The device driver data saved the 'struct sprd_wdt' object, it is
incorrect to get 'struct watchdog_device' object from the driver
data, thus fix it.

Fixes: 47760346 ("watchdog: Add Spreadtrum watchdog driver")
Reported-by: default avatarDongwei Wang <dongwei.wang@unisoc.com>
Signed-off-by: default avatarShuiqing Li <shuiqing.li@unisoc.com>
Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/76d4687189ec940baa90cb8d679a8d4c8f02ee80.1573210405.git.baolin.wang@linaro.org


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent c8da6ce8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment