artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62def3d
)
Check if we have the required "reg" property.
author
kettenis
<kettenis@openbsd.org>
Fri, 5 Aug 2016 21:28:13 +0000
(21:28 +0000)
committer
kettenis
<kettenis@openbsd.org>
Fri, 5 Aug 2016 21:28:13 +0000
(21:28 +0000)
sys/arch/armv7/sunxi/sxiehci.c
patch
|
blob
|
history
diff --git
a/sys/arch/armv7/sunxi/sxiehci.c
b/sys/arch/armv7/sunxi/sxiehci.c
index
e02da5d
..
1d86fd0
100644
(file)
--- a/
sys/arch/armv7/sunxi/sxiehci.c
+++ b/
sys/arch/armv7/sunxi/sxiehci.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sxiehci.c,v 1.
5 2016/08/05 19:00:25
kettenis Exp $ */
+/* $OpenBSD: sxiehci.c,v 1.
6 2016/08/05 21:28:13
kettenis Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@
-122,6
+122,9
@@
sxiehci_attach(struct device *parent, struct device *self, void *aux)
usbd_status r;
char *devname = sc->sc.sc_bus.bdev.dv_xname;
+ if (faa->fa_nreg < 1)
+ return;
+
sc->sc.iot = faa->fa_iot;
sc->sc.sc_bus.dmatag = faa->fa_dmat;
sc->sc.sc_size = faa->fa_reg[0].size;