712866
From 149249007068cfe428beeb523e14d5af72e47f15 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Mon, 18 Apr 2016 15:50:42 +0200
712866
Subject: [PATCH] watchdog: start traversing the device tree from the right
712866
 directory
712866
712866
start with the device subtree, not with the parent of it
712866
---
712866
 modules.d/04watchdog/module-setup.sh | 2 +-
712866
 1 file changed, 1 insertion(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/04watchdog/module-setup.sh b/modules.d/04watchdog/module-setup.sh
5c6c2a
index fbf6d6dd..86b0aee8 100755
712866
--- a/modules.d/04watchdog/module-setup.sh
712866
+++ b/modules.d/04watchdog/module-setup.sh
712866
@@ -55,7 +55,7 @@ installkernel() {
712866
         # however in some cases, we also need to check that if there is
712866
         # a specific driver for the parent bus/device.  In such cases
712866
         # we also need to enable driver for parent bus/device.
712866
-        _wdtppath=$(readlink -f "$_dir/device/..")
712866
+        _wdtppath=$(readlink -f "$_dir/device")
712866
         while [[ -d "$_wdtppath" ]] && [[ "$_wdtppath" != "/sys" ]]; do
712866
             _wdtppath=$(readlink -f "$_wdtppath/..")
712866
             [[ -f "$_wdtppath/modalias" ]] || continue