diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-07-09 10:17:41 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-09-02 06:21:14 -0400 |
commit | 98b0979f025e5b98ce8f24e6dc0f9713e6f6c88c (patch) | |
tree | 04047cbd43c20ca79f20f851656763c31578aab3 /arch/arm/mach-realview | |
parent | 7064d2092df5cbff289457424969292bc4062df4 (diff) |
MMC: MMCI: convert realview MMC to use gpiolib
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-realview')
-rw-r--r-- | arch/arm/mach-realview/core.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index 17a07e6acfac..ab615e78b798 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
@@ -222,6 +222,9 @@ arch_initcall(realview_i2c_init); | |||
222 | 222 | ||
223 | #define REALVIEW_SYSMCI (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_MCI_OFFSET) | 223 | #define REALVIEW_SYSMCI (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_MCI_OFFSET) |
224 | 224 | ||
225 | /* | ||
226 | * This is only used if GPIOLIB support is disabled | ||
227 | */ | ||
225 | static unsigned int realview_mmc_status(struct device *dev) | 228 | static unsigned int realview_mmc_status(struct device *dev) |
226 | { | 229 | { |
227 | struct amba_device *adev = container_of(dev, struct amba_device, dev); | 230 | struct amba_device *adev = container_of(dev, struct amba_device, dev); |
@@ -238,15 +241,15 @@ static unsigned int realview_mmc_status(struct device *dev) | |||
238 | struct mmc_platform_data realview_mmc0_plat_data = { | 241 | struct mmc_platform_data realview_mmc0_plat_data = { |
239 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 242 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
240 | .status = realview_mmc_status, | 243 | .status = realview_mmc_status, |
241 | .gpio_wp = -1, | 244 | .gpio_wp = 17, |
242 | .gpio_cd = -1, | 245 | .gpio_cd = 16, |
243 | }; | 246 | }; |
244 | 247 | ||
245 | struct mmc_platform_data realview_mmc1_plat_data = { | 248 | struct mmc_platform_data realview_mmc1_plat_data = { |
246 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 249 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
247 | .status = realview_mmc_status, | 250 | .status = realview_mmc_status, |
248 | .gpio_wp = -1, | 251 | .gpio_wp = 19, |
249 | .gpio_cd = -1, | 252 | .gpio_cd = 18, |
250 | }; | 253 | }; |
251 | 254 | ||
252 | /* | 255 | /* |