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