Add missing 'unit' code
Submitted by: Brad L. Chisholm <blc@bsdwins.com>
This commit is contained in:
parent
d944886e4d
commit
cae67583dc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user