diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-01-12 22:17:37 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-01-12 22:17:37 +0000 |
commit | c5f74c931471890cd922519653d9259b620bb500 (patch) | |
tree | acfe84560f6789021b5d67b6392e52842c72cdf5 /sys/arch/sparc64 | |
parent | 5375e9ca7502ab26bb0b1359757b85449513425c (diff) |
Look up the "compatible" property of the right node to detect serial
interfaces on the m4k/m5k/m8k/m9k.
Diffstat (limited to 'sys/arch/sparc64')
-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; |