diff options
author | imp <imp@FreeBSD.org> | 2008-09-29 01:28:30 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-09-29 01:28:30 +0000 |
commit | ba2b227bfcfd0e7772d015c1d51f75fa6e9edfa4 (patch) | |
tree | 6b143667fe4c2b796045582c8b3e47f95a8c1bc2 /sys | |
parent | 3808bd172daf18100917365656736f85a590a4fa (diff) | |
download | FreeBSD-src-ba2b227bfcfd0e7772d015c1d51f75fa6e9edfa4.zip FreeBSD-src-ba2b227bfcfd0e7772d015c1d51f75fa6e9edfa4.tar.gz |
The parameters to the MMCBR_ACQUIRE_HOST and MMCBR_RELEAES_HOST were
the device in question, rather than the bus doing the requesting. Fix
it so that it is the bus.
Submitted by: mav@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/mmc/mmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mmc/mmc.c b/sys/dev/mmc/mmc.c index 439b9e0..6b912c5 100644 --- a/sys/dev/mmc/mmc.c +++ b/sys/dev/mmc/mmc.c @@ -176,7 +176,7 @@ mmc_acquire_bus(device_t busdev, device_t dev) int err; int rca; - err = MMCBR_ACQUIRE_HOST(device_get_parent(busdev), dev); + err = MMCBR_ACQUIRE_HOST(device_get_parent(busdev), busdev); if (err) return (err); sc = device_get_softc(busdev); @@ -224,7 +224,7 @@ mmc_release_bus(device_t busdev, device_t dev) if (sc->owner != dev) panic("mmc: you don't own the bus. game over."); MMC_UNLOCK(sc); - err = MMCBR_RELEASE_HOST(device_get_parent(busdev), dev); + err = MMCBR_RELEASE_HOST(device_get_parent(busdev), busdev); if (err) return (err); MMC_LOCK(sc); |