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