summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorpgoyette <pgoyette@NetBSD.org>2018-02-26 04:31:32 +0000
committerpgoyette <pgoyette@NetBSD.org>2018-02-26 04:31:32 +0000
commit8535134bc962f0e7735965e72dac32346b4db767 (patch)
treec91686eadc9f114e79e147753e373f42af9b24d8 /sys/dev
parent7551c336141a393b65e839aa4f6ae56b98fdb644 (diff)
Remove unneeded imc_print() routine
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/imcsmb/imc.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/sys/dev/imcsmb/imc.c b/sys/dev/imcsmb/imc.c
index c7d46e37823..03dcd96b5de 100644
--- a/sys/dev/imcsmb/imc.c
+++ b/sys/dev/imcsmb/imc.c
@@ -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 self, void *aux)
/* 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 * ifattr, const int *flags)
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",