1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Use proper resource type when freeing.

Submitted by:	Ian Lapore (indirectly in a larger patch)
This commit is contained in:
Warner Losh 2012-08-23 21:31:52 +00:00
parent 7ceb94332b
commit fe49e25285
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239623

View File

@ -299,7 +299,7 @@ at91_mci_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)