diff options
Diffstat (limited to 'doc/README.atmel_mci')
| -rw-r--r-- | doc/README.atmel_mci | 12 | 
1 files changed, 2 insertions, 10 deletions
| diff --git a/doc/README.atmel_mci b/doc/README.atmel_mci index dee0cf0a9..0cbd90982 100644 --- a/doc/README.atmel_mci +++ b/doc/README.atmel_mci @@ -59,17 +59,9 @@ int board_mmc_init(bd_t *bd)  }  /* this is a weak define that we are overriding */ -int board_mmc_getcd(u8 *cd, struct mmc *mmc) +int board_mmc_getcd(struct mmc *mmc)  { -	/* -	 * the only currently existing use of this function -	 * (fsl_esdhc.c) suggests this function must return -	 * *cs = TRUE if a card is NOT detected -> in most -	 * cases the value of the pin when the detect switch -	 * closes to GND -	 */ -	*cd = at91_get_gpio_value (CONFIG_SYS_MMC_CD_PIN) ? 1 : 0; -	return 0; +	return !at91_get_gpio_value(CONFIG_SYS_MMC_CD_PIN);  }  #endif |