Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev Fix printing during attach and get rid ...



details:   https://anonhg.NetBSD.org/src/rev/d5bcb554380d
branches:  trunk
changeset: 526595:d5bcb554380d
user:      eeh <eeh%NetBSD.org@localhost>
date:      Mon May 06 22:20:07 2002 +0000

description:
Fix printing during attach and get rid of pci_cd that's provided by the linker.

diffstat:

 sys/arch/sparc64/dev/ofpci.c |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (39 lines):

diff -r 76bd7d53feec -r d5bcb554380d sys/arch/sparc64/dev/ofpci.c
--- a/sys/arch/sparc64/dev/ofpci.c      Mon May 06 22:18:51 2002 +0000
+++ b/sys/arch/sparc64/dev/ofpci.c      Mon May 06 22:20:07 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofpci.c,v 1.1 2002/05/06 19:39:51 eeh Exp $    */
+/*     $NetBSD: ofpci.c,v 1.2 2002/05/06 22:20:07 eeh Exp $    */
 
 /*
  * Copyright (c) 2002 Eduardo Horvath.  All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofpci.c,v 1.1 2002/05/06 19:39:51 eeh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofpci.c,v 1.2 2002/05/06 22:20:07 eeh Exp $");
 
 #include "opt_pci.h"
 
@@ -72,11 +72,6 @@
        sizeof(struct ofpci_softc), ofpcimatch, ofpciattach
 };
 
-/* Provide pci_cd to make the pci driver happy since it's not in ioconf.c. */
-struct cfdriver pci_cd = {
-       NULL, "pci", DV_DULL
-};
-
 static char *getname(int );
 
 static char *
@@ -211,7 +206,7 @@
        int bus;
        pci_chipset_tag_t pc;
        int node;
-       static const char *sep = "";
+       const char *sep = "";
 
 DPRINTF(1, ("ofpciattach: entry\n"));
        printf("\n");



Home | Main Index | Thread Index | Old Index