Module Name: src Committed By: matt Date: Sat May 19 00:11:46 UTC 2012
Modified Files: src/sys/arch/powerpc/booke/dev: pq3gpio.c Log Message: Fix a few compile problems on non-P2020 platforms. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/powerpc/booke/dev/pq3gpio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/powerpc/booke/dev/pq3gpio.c diff -u src/sys/arch/powerpc/booke/dev/pq3gpio.c:1.6 src/sys/arch/powerpc/booke/dev/pq3gpio.c:1.7 --- src/sys/arch/powerpc/booke/dev/pq3gpio.c:1.6 Thu May 17 16:24:09 2012 +++ src/sys/arch/powerpc/booke/dev/pq3gpio.c Sat May 19 00:11:46 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: pq3gpio.c,v 1.6 2012/05/17 16:24:09 matt Exp $ */ +/* $NetBSD: pq3gpio.c,v 1.7 2012/05/19 00:11:46 matt Exp $ */ /*- * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc. * All rights reserved. @@ -41,7 +41,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pq3gpio.c,v 1.6 2012/05/17 16:24:09 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pq3gpio.c,v 1.7 2012/05/19 00:11:46 matt Exp $"); #include <sys/param.h> #include <sys/cpu.h> @@ -163,7 +163,7 @@ pq3gpio_group_create(device_t self, bus_ #endif gc->gc_tag.gp_pin_read = pq3gpio_pin_read; gc->gc_tag.gp_pin_write = pq3gpio_pin_write; - gc->gc_tag.gp_pin_ctl = pq3gpio_pin_ctl; + gc->gc_tag.gp_pin_ctl = pin_ctl; u_int data = bus_space_read_4(gc->gc_bst, gc->gc_bsh, reg); u_int mask = __BIT(31); @@ -227,7 +227,7 @@ pq3gpio_mpc8536_attach(device_t self, bu * Create GPIO pin groups */ aprint_normal_dev(self, "%zu input/output/opendrain pins\n", - pincnt, pincnt); + pincnt); pq3gpio_group_create(self, bst, bsh, GPDAT, pinmask, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_OPENDRAIN, pq3gpio_pin_ctl);