Add missing 'unit' code

Submitted by:	Brad L. Chisholm <blc@bsdwins.com>
This commit is contained in:
roger 2000-10-20 08:16:53 +00:00
parent d944886e4d
commit cae67583dc

View File

@ -464,8 +464,12 @@ bktr_attach( device_t dev )
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);