Add missing 'unit' code

Submitted by:	Brad L. Chisholm <blc@bsdwins.com>
This commit is contained in:
Roger Hardiman 2000-10-20 08:16:53 +00:00
parent 35e0e5b311
commit b02fea74af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67366

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);