MMCSD_SDIO: Only wait for card ejected if card detection is supported

This commit is contained in:
Alan Carvalho de Assis 2017-01-26 07:44:17 -06:00 committed by Gregory Nutt
parent 3b9bcd57ba
commit c482437325

View File

@ -3050,9 +3050,11 @@ static int mmcsd_probe(FAR struct mmcsd_state_s *priv)
finfo("Capacity: %lu Kbytes\n", (unsigned long)(priv->capacity / 1024));
priv->mediachanged = true;
#ifdef CONFIG_MMCSD_HAVECARDDETECT
/* Set up to receive asynchronous, media removal events */
SDIO_CALLBACKENABLE(priv->dev, SDIOMEDIA_EJECTED);
#endif
}
/* REVISIT: There is a problem here. If mmcsd_initialize() returns a