Blame SOURCES/0441-watchdog-start-traversing-the-device-tree-from-the-r.patch

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