Explorar o código

[CPWATCHDOG]: Fix the build.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller %!s(int64=19) %!d(string=hai) anos
pai
achega
1715f5ef0d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/sbus/char/cpwatchdog.c

+ 1 - 1
drivers/sbus/char/cpwatchdog.c

@@ -755,7 +755,7 @@ static int __init wd_init(void)
 
 
 	for_each_ebus(ebus) {
 	for_each_ebus(ebus) {
 		for_each_ebusdev(edev, ebus) {
 		for_each_ebusdev(edev, ebus) {
-			if (!strcmp(edev->prom_name, WD_OBPNAME))
+			if (!strcmp(edev->ofdev.node->name, WD_OBPNAME))
 				goto ebus_done;
 				goto ebus_done;
 		}
 		}
 	}
 	}