watchdog: start traversing the device tree from the right directory

start with the device subtree, not with the parent of it
Harald Hoyer 2016-04-18 15:50:42 +02:00 committed by Pratyush Anand
parent 0eb1ee3db2
commit 1492490070
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ installkernel() {
# however in some cases, we also need to check that if there is
# a specific driver for the parent bus/device. In such cases
# we also need to enable driver for parent bus/device.
_wdtppath=$(readlink -f "$_dir/device/..")
_wdtppath=$(readlink -f "$_dir/device")
while [[ -d "$_wdtppath" ]] && [[ "$_wdtppath" != "/sys" ]]; do
_wdtppath=$(readlink -f "$_wdtppath/..")
[[ -f "$_wdtppath/modalias" ]] || continue