diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-07-09 10:15:12 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-07-09 10:15:12 -0400 |
commit | 7fb2bbf4d9e7e62057184f1e061566459eef6c79 (patch) | |
tree | e67c4c6780246bca649fac652f83116785ee855e /arch/arm/mach-versatile | |
parent | 012b7d339ce8c42d41e35b35c4acc3dd29501d52 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-versatile')
-rw-r--r-- | arch/arm/mach-versatile/core.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-versatile/versatile_pb.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index 92273c95edf5..afc0f87f3fa4 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c | |||
@@ -373,6 +373,8 @@ unsigned int mmc_status(struct device *dev) | |||
373 | static struct mmc_platform_data mmc0_plat_data = { | 373 | static struct mmc_platform_data mmc0_plat_data = { |
374 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 374 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
375 | .status = mmc_status, | 375 | .status = mmc_status, |
376 | .gpio_wp = -1, | ||
377 | .gpio_cd = -1, | ||
376 | }; | 378 | }; |
377 | 379 | ||
378 | /* | 380 | /* |
diff --git a/arch/arm/mach-versatile/versatile_pb.c b/arch/arm/mach-versatile/versatile_pb.c index 7419451fdf00..9af8d8154df5 100644 --- a/arch/arm/mach-versatile/versatile_pb.c +++ b/arch/arm/mach-versatile/versatile_pb.c | |||
@@ -44,6 +44,8 @@ | |||
44 | static struct mmc_platform_data mmc1_plat_data = { | 44 | static struct mmc_platform_data mmc1_plat_data = { |
45 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 45 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
46 | .status = mmc_status, | 46 | .status = mmc_status, |
47 | .gpio_wp = -1, | ||
48 | .gpio_cd = -1, | ||
47 | }; | 49 | }; |
48 | 50 | ||
49 | static struct pl061_platform_data gpio2_plat_data = { | 51 | static struct pl061_platform_data gpio2_plat_data = { |