Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/broadcom Build fix for when there is no gpio in...



details:   https://anonhg.NetBSD.org/src/rev/e3d68c4a33fb
branches:  trunk
changeset: 329312:e3d68c4a33fb
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon May 19 08:33:41 2014 +0000

description:
Build fix for when there is no gpio in the kernel.

PR/48816: Compile fix for src/sys/arch/arm/broadcom/bcm2835_gpio.c

diffstat:

 sys/arch/arm/broadcom/bcm2835_gpio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r a4c93d2f9d73 -r e3d68c4a33fb sys/arch/arm/broadcom/bcm2835_gpio.c
--- a/sys/arch/arm/broadcom/bcm2835_gpio.c      Mon May 19 07:09:10 2014 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_gpio.c      Mon May 19 08:33:41 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm2835_gpio.c,v 1.1 2014/04/22 18:51:35 kardel Exp $  */
+/*     $NetBSD: bcm2835_gpio.c,v 1.2 2014/05/19 08:33:41 skrll Exp $   */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_gpio.c,v 1.1 2014/04/22 18:51:35 kardel Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_gpio.c,v 1.2 2014/05/19 08:33:41 skrll Exp $");
 
 /*
  * Driver for BCM2835 GPIO
@@ -108,6 +108,7 @@
        
        sc->sc_dev = self;
        
+#if NGPIO > 0
        if (device_unit(sc->sc_dev) > 1) {
                aprint_naive(" NO GPIO\n");     
                aprint_normal(": NO GPIO\n");
@@ -127,7 +128,6 @@
        sc->sc_iot = &bcm2835_bs_tag;
        sc->sc_ioh = BCM2835_IOPHYSTOVIRT(BCM2835_GPIO_BASE);
        
-#if NGPIO > 0
        for (pin = minpin; pin <= maxpin; pin++) {
                int epin = pin - minpin;
        



Home | Main Index | Thread Index | Old Index