From 2b5248a2579d2d69b1bd8145a2d26b3e2048e7b8 Mon Sep 17 00:00:00 2001 From: stsp Date: Sat, 17 May 2014 12:54:57 +0000 Subject: [PATCH] Fix kernel build with EHCI_DEBUG by removing a non-compiling DPRINTF(). Since no DPRINTF() call remains also remove its definition (requested by mpi@). ok mpi, and also reported by Jean-Philippe Ouellet --- sys/dev/cardbus/ehci_cardbus.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/sys/dev/cardbus/ehci_cardbus.c b/sys/dev/cardbus/ehci_cardbus.c index 49ed81cac8c..d757ce5828d 100644 --- a/sys/dev/cardbus/ehci_cardbus.c +++ b/sys/dev/cardbus/ehci_cardbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ehci_cardbus.c,v 1.18 2014/05/16 18:17:03 mpi Exp $ */ +/* $OpenBSD: ehci_cardbus.c,v 1.19 2014/05/17 12:54:57 stsp Exp $ */ /* $NetBSD: ehci_cardbus.c,v 1.6.6.3 2004/09/21 13:27:25 skrll Exp $ */ /* @@ -51,14 +51,6 @@ #include #include -#ifdef EHCI_DEBUG -#define DPRINTF(x) if (ehcidebug) printf x -extern int ehcidebug; -#else -#define DPRINTF(x) -#endif - - int ehci_cardbus_match(struct device *, void *, void *); void ehci_cardbus_attach(struct device *, struct device *, void *); int ehci_cardbus_detach(struct device *, int); @@ -130,7 +122,6 @@ ehci_cardbus_attach(struct device *parent, struct device *self, void *aux) /* Disable interrupts, so we don't get any spurious ones. */ sc->sc.sc_offs = EREAD1(&sc->sc, EHCI_CAPLENGTH); - DPRINTF((": offs=%d", devname, sc->sc.sc_offs)); EOWRITE2(&sc->sc, EHCI_USBINTR, 0); sc->sc_ih = cardbus_intr_establish(cc, cf, ca->ca_intrline, -- 2.20.1