Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/gumstix Use CFATTACH_DECL_NEW().
details: https://anonhg.NetBSD.org/src/rev/9b3d806bf19a
branches: trunk
changeset: 766387:9b3d806bf19a
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Tue Jun 21 11:38:03 2011 +0000
description:
Use CFATTACH_DECL_NEW().
diffstat:
sys/arch/evbarm/gumstix/gxiic.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r d3e39e32eefc -r 9b3d806bf19a sys/arch/evbarm/gumstix/gxiic.c
--- a/sys/arch/evbarm/gumstix/gxiic.c Tue Jun 21 09:49:05 2011 +0000
+++ b/sys/arch/evbarm/gumstix/gxiic.c Tue Jun 21 11:38:03 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gxiic.c,v 1.6 2011/06/19 16:16:42 nonaka Exp $ */
+/* $NetBSD: gxiic.c,v 1.7 2011/06/21 11:38:03 kiyohara Exp $ */
/*
* Copyright (c) 2007 KIYOHARA Takashi
* All rights reserved.
@@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gxiic.c,v 1.6 2011/06/19 16:16:42 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gxiic.c,v 1.7 2011/06/21 11:38:03 kiyohara Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -58,7 +58,7 @@
void *, size_t, int);
-CFATTACH_DECL(gxiic, sizeof(struct gxiic_softc),
+CFATTACH_DECL_NEW(gxiic, sizeof(struct gxiic_softc),
gxiicmatch, gxiicattach, NULL, NULL);
@@ -88,6 +88,7 @@
sc->sc_pxa_i2c.sc_dev = self;
sc->sc_pxa_i2c.sc_iot = pxa->pxa_iot;
+ sc->sc_pxa_i2c.sc_addr = pxa->pxa_addr;
sc->sc_pxa_i2c.sc_size = pxa->pxa_size;
sc->sc_pxa_i2c.sc_flags = 0;
if (pxa2x0_i2c_attach_sub(&sc->sc_pxa_i2c)) {
Home |
Main Index |
Thread Index |
Old Index