summaryrefslogtreecommitdiffstats
path: root/sys/dev/mmc/mmc.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-09-29 18:55:45 +0000
committerimp <imp@FreeBSD.org>2008-09-29 18:55:45 +0000
commit7e5e6d6f2777c86fc9d9242280c9293aac141d21 (patch)
treef47eb3ea702a955d050d43a38831a2a3c1032e5f /sys/dev/mmc/mmc.c
parent8b764e092ec0c81eb57d9cea4c442339aa5a2ce9 (diff)
downloadFreeBSD-src-7e5e6d6f2777c86fc9d9242280c9293aac141d21.zip
FreeBSD-src-7e5e6d6f2777c86fc9d9242280c9293aac141d21.tar.gz
Make the media size return the block rather than the bytes on the device.
Diffstat (limited to 'sys/dev/mmc/mmc.c')
-rw-r--r--sys/dev/mmc/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mmc/mmc.c b/sys/dev/mmc/mmc.c
index 941ae05..868ab01 100644
--- a/sys/dev/mmc/mmc.c
+++ b/sys/dev/mmc/mmc.c
@@ -760,7 +760,7 @@ mmc_read_ivar(device_t bus, device_t child, int which, u_char *result)
*(int *)result = ivar->csd.dsr_imp;
break;
case MMC_IVAR_MEDIA_SIZE:
- *(int *)result = ivar->csd.capacity;
+ *(int *)result = ivar->csd.capacity / DEV_BSIZE;
break;
case MMC_IVAR_RCA:
*(int *)result = ivar->rca;
OpenPOWER on IntegriCloud