Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Use CFATTACH_DECL().



details:   https://anonhg.NetBSD.org/src/rev/c88699c2e619
branches:  trunk
changeset: 537512:c88699c2e619
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Oct 02 05:51:28 2002 +0000

description:
Use CFATTACH_DECL().

diffstat:

 sys/arch/atari/dev/ncr5380.c  |  8 ++++----
 sys/arch/mac68k/dev/ncr5380.c |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (46 lines):

diff -r acdb8e437a6e -r c88699c2e619 sys/arch/atari/dev/ncr5380.c
--- a/sys/arch/atari/dev/ncr5380.c      Wed Oct 02 05:47:08 2002 +0000
+++ b/sys/arch/atari/dev/ncr5380.c      Wed Oct 02 05:51:28 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ncr5380.c,v 1.42 2002/09/27 20:30:59 thorpej Exp $     */
+/*     $NetBSD: ncr5380.c,v 1.43 2002/10/02 05:51:28 thorpej Exp $     */
 
 /*
  * Copyright (c) 1995 Leo Weppelman.
@@ -194,10 +194,10 @@
 #define CFNAME(n)      __CONCAT(n,_cd)
 #define CANAME(n)      __CONCAT(n,_ca)
 #define CFSTRING(n)    __STRING(n)
+#define        CFDRNAME(n)     n
 
-const struct cfattach CANAME(DRNAME) = {
-       sizeof(struct ncr_softc), ncr_match, ncr_attach
-};
+CFATTACH_DECL(CFDRNAME(DRNAME), sizeof(struct ncr_softc),
+    ncr_match, ncr_attach, NULL, NULL);
 
 extern struct cfdriver CFNAME(DRNAME);
 
diff -r acdb8e437a6e -r c88699c2e619 sys/arch/mac68k/dev/ncr5380.c
--- a/sys/arch/mac68k/dev/ncr5380.c     Wed Oct 02 05:47:08 2002 +0000
+++ b/sys/arch/mac68k/dev/ncr5380.c     Wed Oct 02 05:51:28 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ncr5380.c,v 1.49 2002/09/27 20:33:14 thorpej Exp $     */
+/*     $NetBSD: ncr5380.c,v 1.50 2002/10/02 05:52:32 thorpej Exp $     */
 
 /*
  * Copyright (c) 1995 Leo Weppelman.
@@ -196,10 +196,10 @@
 #define CFNAME(n)      __CONCAT(n,_cd)
 #define CANAME(n)      __CONCAT(n,_ca)
 #define CFSTRING(n)    __STRING(n)
+#define        CFDRNAME(n)     n
 
-const struct cfattach CANAME(DRNAME) = {
-       sizeof(struct ncr_softc), ncr_match, ncr_attach
-};
+CFATTACH_DECL(CFDRNAME(DRNAME), sizeof(struct ncr_softc),
+    ncr_match, ncr_attach, NULL, NULL);
 
 extern struct cfdriver CFNAME(DRNAME);
 



Home | Main Index | Thread Index | Old Index