1
0
Fork 0

drivers: mmc: omap_hsmmc: request cd and wp gpios when DM_MMC is defined

Add request gpio for CD and WP gpios, so that the gpio can be
used for the respective purposes.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
utp
Mugunthan V N 2016-04-04 17:28:01 +05:30 committed by Tom Rini
parent 4bc5e19e12
commit 5cc6a2458e
1 changed files with 5 additions and 0 deletions

View File

@ -820,6 +820,11 @@ static int omap_hsmmc_probe(struct udevice *dev)
if (mmc == NULL)
return -1;
#ifdef OMAP_HSMMC_USE_GPIO
gpio_request_by_name(dev, "cd-gpios", 0, &priv->cd_gpio, GPIOD_IS_IN);
gpio_request_by_name(dev, "wp-gpios", 0, &priv->wp_gpio, GPIOD_IS_IN);
#endif
upriv->mmc = mmc;
return 0;