aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/da9062_wdt.c
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>2015-06-02 15:46:18 +0300
committerWim Van Sebroeck <wim@iguana.be>2015-06-22 15:54:33 +0200
commit8135193ceba383e336b2449589db930ea02807d2 (patch)
treeaef68e828175bfb6dcf1d119bf83ea62183b00be /drivers/watchdog/da9062_wdt.c
parentwatchdog: mena21_wdt: Fix possible NULL pointer dereference (diff)
downloadlinux-dev-8135193ceba383e336b2449589db930ea02807d2.tar.xz
linux-dev-8135193ceba383e336b2449589db930ea02807d2.zip
watchdog: imx2_wdt: set watchdog parent device
If on watchdog device registration a parent device is not set, then the registered watchdog is considered to be a virtual device: /sys/devices/virtual/watchdog/watchdog0 /sys/devices/virtual/watchdog/watchdog1 Setting a correct reference to a platform device allows to distinguish multiple instances of iMX2+ hardware watchdogs: /sys/devices/soc0/soc/2000000.aips-bus/20bc000.wdog/watchdog/watchdog0 /sys/devices/soc0/soc/2000000.aips-bus/20c0000.wdog/watchdog/watchdog1 Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/da9062_wdt.c')
0 files changed, 0 insertions, 0 deletions