diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2013-10-31 17:15:20 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2013-10-31 17:15:20 +0000 |
commit | ace0bd9b41a3f585074b6c740ea751bd5530c3c3 (patch) | |
tree | dcf28ac2bd0d04965411ce8cd38a37a4c2eddfff /sys/arch | |
parent | 41141229a5ee81365f6a6a3116739c9851b94da3 (diff) |
add proper guard around gpiobus_print() to allow RAMDISK-SUNXI to compile
ok aalm@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/armv7/sunxi/sxipio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/armv7/sunxi/sxipio.c b/sys/arch/armv7/sunxi/sxipio.c index 66c0dc08301..8c643ce0de9 100644 --- a/sys/arch/armv7/sunxi/sxipio.c +++ b/sys/arch/armv7/sunxi/sxipio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxipio.c,v 1.2 2013/10/23 18:01:52 jasper Exp $ */ +/* $OpenBSD: sxipio.c,v 1.3 2013/10/31 17:15:19 jasper Exp $ */ /* * Copyright (c) 2010 Miodrag Vallat. * Copyright (c) 2013 Artturi Alm @@ -219,7 +219,9 @@ next: gba.gba_pins = &sc->sc_gpio_pins[port][0]; gba.gba_npins = pin; +#if NGPIO > 0 config_found(&sc->sc_dev, &gba, gpiobus_print); +#endif pin = 0; if (++port < SXIPIO_NPORT) |