Watchdog: Fix parent of watchdog_devices
/sys/class/watchdog/watchdogn/device/modalias can help to identify the driver/module for a given watchdog node. However, many wdt devices do not set their parent and so, we do not see an entry for device in sysfs for such devices. This patch fixes parent of watchdog_device so that /sys/class/watchdog/watchdogn/device is populated. Exceptions: booke, diag288, octeon, softdog and w83627hf -- They do not have any parent. Not sure, how we can identify driver for these devices. Signed-off-by: NPratyush Anand <panand@redhat.com> Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de> Acked-by: NGuenter Roeck <linux@roeck-us.net> Acked-by: NH Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: NLee Jones <lee.jones@linaro.org> Acked-by: NLubomir Rintel <lkundrak@v3.sk> Acked-by: NMaxime Coquelin <maxime.coquelin@st.com> Acked-by: NThierry Reding <treding@nvidia.com> Acked-by: NViresh Kumar <viresh.kumar@linaro.org> Acked-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
Showing
想要评论请 注册 或 登录