MMC: MMCI: allow GPIOs to be passed

Add and initialize the gpio_wp and gpio_cd members.  We need to
ensure that all users are covered, because GPIO 0 may be valid.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
This commit is contained in:
Russell King
2009-07-09 15:15:12 +01:00
committato da Russell King
parent 012b7d339c
commit 7fb2bbf4d9
6 ha cambiato i file con 14 aggiunte e 0 eliminazioni

Vedi File

@@ -238,11 +238,15 @@ static unsigned int realview_mmc_status(struct device *dev)
struct mmc_platform_data realview_mmc0_plat_data = {
.ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
.status = realview_mmc_status,
.gpio_wp = -1,
.gpio_cd = -1,
};
struct mmc_platform_data realview_mmc1_plat_data = {
.ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
.status = realview_mmc_status,
.gpio_wp = -1,
.gpio_cd = -1,
};
/*