diff options
author | 2017-09-30 18:11:46 +0000 | |
---|---|---|
committer | 2017-09-30 18:11:46 +0000 | |
commit | 41b994952390d647605253278d2cb77edc09351e (patch) | |
tree | e2d4c26ab94daecdacefc6031bf90f3f5dc13e76 | |
parent | Add some more boundary checks and prevent an attempt to divide by zero (diff) | |
download | wireguard-openbsd-41b994952390d647605253278d2cb77edc09351e.tar.xz wireguard-openbsd-41b994952390d647605253278d2cb77edc09351e.zip |
The property that points the the attached PHY is called "phy-handle" instead
of "phy".
ok patrick@, deraadt@
-rw-r--r-- | sys/dev/fdt/if_dwxe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdt/if_dwxe.c b/sys/dev/fdt/if_dwxe.c index 85c5098af31..afa28982b7c 100644 --- a/sys/dev/fdt/if_dwxe.c +++ b/sys/dev/fdt/if_dwxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_dwxe.c,v 1.1 2017/09/21 12:01:52 patrick Exp $ */ +/* $OpenBSD: if_dwxe.c,v 1.2 2017/09/30 18:11:46 kettenis Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * Copyright (c) 2017 Patrick Wildt <patrick@blueri.se> @@ -369,7 +369,7 @@ dwxe_attach(struct device *parent, struct device *self, void *aux) sc->sc_dmat = faa->fa_dmat; /* Lookup PHY. */ - phy = OF_getpropint(faa->fa_node, "phy", 0); + phy = OF_getpropint(faa->fa_node, "phy-handle", 0); node = OF_getnodebyphandle(phy); if (node) phyloc = OF_getpropint(node, "reg", phyloc); |