Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/gpio Fix non-COMPAT_50 compilation.



details:   https://anonhg.NetBSD.org/src/rev/d62b7c80acbb
branches:  trunk
changeset: 770093:d62b7c80acbb
user:      mbalmer <mbalmer%NetBSD.org@localhost>
date:      Mon Oct 03 11:31:56 2011 +0000

description:
Fix non-COMPAT_50 compilation.

diffstat:

 sys/dev/gpio/gpio.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r b1f484ecfbac -r d62b7c80acbb sys/dev/gpio/gpio.c
--- a/sys/dev/gpio/gpio.c       Mon Oct 03 11:28:28 2011 +0000
+++ b/sys/dev/gpio/gpio.c       Mon Oct 03 11:31:56 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gpio.c,v 1.45 2011/10/03 11:28:28 mbalmer Exp $ */
+/* $NetBSD: gpio.c,v 1.46 2011/10/03 11:31:56 mbalmer Exp $ */
 /*     $OpenBSD: gpio.c,v 1.6 2006/01/14 12:33:49 grange Exp $ */
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gpio.c,v 1.45 2011/10/03 11:28:28 mbalmer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gpio.c,v 1.46 2011/10/03 11:31:56 mbalmer Exp $");
 
 /*
  * General Purpose Input/Output framework.
@@ -511,11 +511,13 @@
        struct gpio_attach *attach;
        struct gpio_attach_args ga;
        struct gpio_req *req;
-       struct gpio_dev *gdev;
        struct gpio_pulse *pulse;
        struct gpio_name *nm;
        struct gpio_set *set;
        struct gpio_pin *gpin;
+#ifdef COMPAT_50
+       struct gpio_dev *gdev;
+#endif
        device_t dv;
        cfdata_t cf;
        kauth_cred_t cred;



Home | Main Index | Thread Index | Old Index