Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/isa Add an option to enable GPIO function of wbsio. ...



details:   https://anonhg.NetBSD.org/src/rev/8cd6a6ec26a8
branches:  trunk
changeset: 358117:8cd6a6ec26a8
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Wed Dec 13 00:29:02 2017 +0000

description:
Add an option to enable GPIO function of wbsio. Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.

I just commit by proxy.

diffstat:

 sys/dev/isa/wbsio.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r bf097d3e3756 -r 8cd6a6ec26a8 sys/dev/isa/wbsio.c
--- a/sys/dev/isa/wbsio.c       Wed Dec 13 00:27:53 2017 +0000
+++ b/sys/dev/isa/wbsio.c       Wed Dec 13 00:29:02 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wbsio.c,v 1.18 2017/12/13 00:27:53 knakahara Exp $     */
+/*     $NetBSD: wbsio.c,v 1.19 2017/12/13 00:29:02 knakahara Exp $     */
 /*     $OpenBSD: wbsio.c,v 1.10 2015/03/14 03:38:47 jsg Exp $  */
 /*
  * Copyright (c) 2008 Mark Kettenis <kettenis%openbsd.org@localhost>
@@ -37,9 +37,10 @@
 #include <dev/sysmon/sysmonvar.h>
 
 /* Don't use gpio for now in the module */
-#ifndef _MODULE
+#if !defined(_MODULE) && defined(WBSIO_GPIO)
 #include "gpio.h"
 #endif
+
 #if NGPIO > 0
 #include <dev/gpio/gpiovar.h>
 #endif



Home | Main Index | Thread Index | Old Index