diff options
author | imp <imp@FreeBSD.org> | 2008-09-30 02:32:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-09-30 02:32:41 +0000 |
commit | 5a8e6d35724e8df2ff4dcb2547a9a7473a217fdb (patch) | |
tree | 609f3a4d0fde10efdf6ed8aa7c68331e590ad129 /sys/arm | |
parent | cc2238d3339259960bfe8a6173749d9b0f95c9d9 (diff) | |
download | FreeBSD-src-5a8e6d35724e8df2ff4dcb2547a9a7473a217fdb.zip FreeBSD-src-5a8e6d35724e8df2ff4dcb2547a9a7473a217fdb.tar.gz |
Properly implement read only. Also, the caps implementation is wrong
here, so I'm backing it out.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/at91/at91_mci.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arm/at91/at91_mci.c b/sys/arm/at91/at91_mci.c index 8daeedd..3c49b9d 100644 --- a/sys/arm/at91/at91_mci.c +++ b/sys/arm/at91/at91_mci.c @@ -455,7 +455,7 @@ at91_mci_request(device_t brdev, device_t reqdev, struct mmc_request *req) static int at91_mci_get_ro(device_t brdev, device_t reqdev) { - return (-1); + return (0); } static int @@ -642,9 +642,6 @@ at91_mci_read_ivar(device_t bus, device_t child, int which, u_char *result) case MMCBR_IVAR_VDD: *(int *)result = sc->host.ios.vdd; break; - case MMCBR_IVAR_CAPS: - *(int *)result = sc->host.ios.caps; - break; } return (0); } @@ -685,7 +682,6 @@ at91_mci_write_ivar(device_t bus, device_t child, int which, uintptr_t value) case MMCBR_IVAR_HOST_OCR: case MMCBR_IVAR_F_MIN: case MMCBR_IVAR_F_MAX: - case MMCBR_IVAR_CAPS: return (EINVAL); } return (0); |