Module Name: src Committed By: mrg Date: Sun Jun 12 21:28:27 UTC 2011
Modified Files: src/sys/arch/powerpc/powerpc: rtas.c Log Message: convert to device_t and CFATTACH_DECL_NEW. now my ofppc system has none left. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/powerpc/powerpc/rtas.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/powerpc/rtas.c diff -u src/sys/arch/powerpc/powerpc/rtas.c:1.9 src/sys/arch/powerpc/powerpc/rtas.c:1.10 --- src/sys/arch/powerpc/powerpc/rtas.c:1.9 Tue Nov 9 06:47:24 2010 +++ src/sys/arch/powerpc/powerpc/rtas.c Sun Jun 12 21:28:26 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: rtas.c,v 1.9 2010/11/09 06:47:24 uebayasi Exp $ */ +/* $NetBSD: rtas.c,v 1.10 2011/06/12 21:28:26 mrg Exp $ */ /* * CHRP RTAS support routines @@ -9,7 +9,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rtas.c,v 1.9 2010/11/09 06:47:24 uebayasi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rtas.c,v 1.10 2011/06/12 21:28:26 mrg Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -28,7 +28,6 @@ struct rtas_softc *rtas0_softc; struct rtas_softc { - struct device ra_dev; int ra_phandle; int ra_version; @@ -78,7 +77,7 @@ static int rtas_todr_settime_ymdhms(struct todr_chip_handle *, struct clock_ymdhms *); -CFATTACH_DECL(rtas, sizeof (struct rtas_softc), +CFATTACH_DECL_NEW(rtas, sizeof (struct rtas_softc), rtas_match, rtas_attach, rtas_detach, rtas_activate); static int @@ -96,7 +95,7 @@ rtas_attach(struct device *parent, struct device *self, void *aux) { struct confargs *ca = aux; - struct rtas_softc *sc = (struct rtas_softc *) self; + struct rtas_softc *sc = device_private(self); int ph = ca->ca_node; int ih; int rtas_size;