Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/footbridge/isa Complete the device_t/softc spli...



details:   https://anonhg.NetBSD.org/src/rev/ccc9ab566418
branches:  trunk
changeset: 781984:ccc9ab566418
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Oct 11 08:53:27 2012 +0000

description:
Complete the device_t/softc split I attempted previously.

>From chuq.

diffstat:

 sys/arch/arm/footbridge/isa/dsrtc.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 5e6ea5967adf -r ccc9ab566418 sys/arch/arm/footbridge/isa/dsrtc.c
--- a/sys/arch/arm/footbridge/isa/dsrtc.c       Thu Oct 11 08:47:45 2012 +0000
+++ b/sys/arch/arm/footbridge/isa/dsrtc.c       Thu Oct 11 08:53:27 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dsrtc.c,v 1.11 2009/07/21 07:35:55 skrll Exp $ */
+/*     $NetBSD: dsrtc.c,v 1.12 2012/10/11 08:53:27 skrll Exp $ */
 
 /*
  * Copyright (c) 1998 Mark Brinicombe.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dsrtc.c,v 1.11 2009/07/21 07:35:55 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dsrtc.c,v 1.12 2012/10/11 08:53:27 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -53,14 +53,13 @@
 #define NRTC_PORTS     2
 
 struct dsrtc_softc {
-       struct device   sc_dev;
        bus_space_tag_t sc_iot;
        bus_space_handle_t sc_ioh;
        struct todr_chip_handle sc_todr;
 };
 
-void dsrtcattach(struct device *parent, struct device *self, void *aux);
-int dsrtcmatch(struct device *parent, struct cfdata *cf, void *aux);
+void dsrtcattach(device_t parent, device_t self, void *aux);
+int dsrtcmatch(device_t parent, cfdata_t cf, void *aux);
 int ds1687_read(struct dsrtc_softc *sc, int addr);
 void ds1687_write(struct dsrtc_softc *sc, int addr, int data);
 #if 0



Home | Main Index | Thread Index | Old Index