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
committed by Russell King
parent 012b7d339c
commit 7fb2bbf4d9
6 changed files with 14 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ struct mmc_platform_data {
unsigned int ocr_mask; /* available voltages */
u32 (*translate_vdd)(struct device *, unsigned int);
unsigned int (*status)(struct device *);
int gpio_wp;
int gpio_cd;
};
#endif