diff --git a/sys/arm/at91/at91_mci.c b/sys/arm/at91/at91_mci.c index 8daeedd50f2b..3c49b9db4e72 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);