From b02fea74af5613210856c99ab5b4f801af8325c6 Mon Sep 17 00:00:00 2001 From: Roger Hardiman Date: Fri, 20 Oct 2000 08:16:53 +0000 Subject: [PATCH] Add missing 'unit' code Submitted by: Brad L. Chisholm --- sys/dev/bktr/bktr_os.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/bktr/bktr_os.c b/sys/dev/bktr/bktr_os.c index 81c44bc0a0d8..6ed546e053d2 100644 --- a/sys/dev/bktr/bktr_os.c +++ b/sys/dev/bktr/bktr_os.c @@ -464,8 +464,12 @@ fail: static int bktr_detach( device_t dev ) { + unsigned int unit; + struct bktr_softc *bktr = device_get_softc(dev); + unit = device_get_unit(dev); + /* Disable the brooktree device */ OUTL(bktr, BKTR_INT_MASK, ALL_INTS_DISABLED); OUTW(bktr, BKTR_GPIO_DMA_CTL, FIFO_RISC_DISABLED);