Module Name:    src
Committed By:   pgoyette
Date:           Mon Feb 26 04:31:32 UTC 2018

Modified Files:
        src/sys/dev/imcsmb: imc.c

Log Message:
Remove unneeded imc_print() routine


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/imcsmb/imc.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/dev/imcsmb/imc.c
diff -u src/sys/dev/imcsmb/imc.c:1.1 src/sys/dev/imcsmb/imc.c:1.2
--- src/sys/dev/imcsmb/imc.c:1.1	Sun Feb 25 08:19:34 2018
+++ src/sys/dev/imcsmb/imc.c	Mon Feb 26 04:31:32 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: imc.c,v 1.1 2018/02/25 08:19:34 pgoyette Exp $ */
+/* $NetBSD: imc.c,v 1.2 2018/02/26 04:31:32 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -225,19 +225,6 @@ imc_attach(device_t parent, device_t sel
 /* Create the imcsmbX children */
 
 static int
-imc_print(void *aux, const char *pnp)
-{
-	struct imc_attach_args *imca = aux;
-
-	if (pnp != NULL) {
-		aprint_normal("smbus controller not %d attached to %s\n",
-		    imca->ia_unit, pnp);
-		return UNCONF;
-	} else
-		return QUIET;
-}
-
-static int
 imc_rescan(device_t self, const char * ifattr, const int *flags)
 {
 	struct imc_softc *sc = device_private(self);
@@ -253,7 +240,7 @@ imc_rescan(device_t self, const char * i
 		imca.ia_regs = &imcsmb_regs[unit];
 		imca.ia_pci_tag = sc->sc_pci_tag;
 		imca.ia_pci_chipset_tag = sc->sc_pci_chipset_tag;
-		child = config_found_ia(self, "imc", &imca, imc_print);
+		child = config_found_ia(self, "imc", &imca, NULL);
 
 		if (child == NULL) {
 			aprint_normal_dev(self, "Child %d imcsmb not added\n",

Reply via email to