diff options
author | 2009-01-12 22:17:36 +0000 | |
---|---|---|
committer | 2009-01-12 22:17:36 +0000 | |
commit | f0c5999b9c5c3eb18c7da522f46fc1e978e637d8 (patch) | |
tree | cde2175c91f415a0020cca9cb7d5bd80b0fe1846 | |
parent | Oops, sunkbd_decode() still needs to be public for *cngetc() to work; (diff) | |
download | wireguard-openbsd-f0c5999b9c5c3eb18c7da522f46fc1e978e637d8.tar.xz wireguard-openbsd-f0c5999b9c5c3eb18c7da522f46fc1e978e637d8.zip |
Look up the "compatible" property of the right node to detect serial
interfaces on the m4k/m5k/m8k/m9k.
-rw-r--r-- | sys/arch/sparc64/dev/com_ebus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/com_ebus.c b/sys/arch/sparc64/dev/com_ebus.c index 77320bcc315..71800b39eca 100644 --- a/sys/arch/sparc64/dev/com_ebus.c +++ b/sys/arch/sparc64/dev/com_ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_ebus.c,v 1.19 2009/01/05 22:13:17 kettenis Exp $ */ +/* $OpenBSD: com_ebus.c,v 1.20 2009/01/12 22:17:36 kettenis Exp $ */ /* $NetBSD: com_ebus.c,v 1.6 2001/07/24 19:27:10 eeh Exp $ */ /* @@ -210,7 +210,7 @@ com_ebus_attach(struct device *parent, struct device *self, void *aux) * This will effectively disable the TX FIFO, but will still * enable the RX FIFO, which is what we really care about. */ - if (OF_getprop(node, "compatible", buf, sizeof(buf)) > 0 && + if (OF_getprop(ea->ea_node, "compatible", buf, sizeof(buf)) > 0 && strcmp(buf, "FJSV,su") == 0) sc->sc_fifolen = 1; |