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:
committed by
Russell King
parent
012b7d339c
commit
7fb2bbf4d9
@@ -373,6 +373,8 @@ unsigned int mmc_status(struct device *dev)
|
||||
static struct mmc_platform_data mmc0_plat_data = {
|
||||
.ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
|
||||
.status = mmc_status,
|
||||
.gpio_wp = -1,
|
||||
.gpio_cd = -1,
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user