mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Release the resources for the registers for the TWI device with
SYS_RES_MEMORY to match how we allocate them... Noticed by: Ian Lepore
This commit is contained in:
parent
16f53ec4b7
commit
70311cad4b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179375
@ -192,7 +192,7 @@ at91_twi_deactivate(device_t dev)
|
||||
sc->intrhand = 0;
|
||||
bus_generic_detach(sc->dev);
|
||||
if (sc->mem_res)
|
||||
bus_release_resource(dev, SYS_RES_IOPORT,
|
||||
bus_release_resource(dev, SYS_RES_MEMORY,
|
||||
rman_get_rid(sc->mem_res), sc->mem_res);
|
||||
sc->mem_res = 0;
|
||||
if (sc->irq_res)
|
||||
|
Loading…
Reference in New Issue
Block a user