Skip to content

Commit

Permalink
MMC: MMCI: convert realview MMC to use gpiolib
Browse files Browse the repository at this point in the history
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Sep 2, 2009
1 parent 7064d20 commit 98b0979
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions arch/arm/mach-realview/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ arch_initcall(realview_i2c_init);

#define REALVIEW_SYSMCI (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_MCI_OFFSET)

/*
* This is only used if GPIOLIB support is disabled
*/
static unsigned int realview_mmc_status(struct device *dev)
{
struct amba_device *adev = container_of(dev, struct amba_device, dev);
Expand All @@ -238,15 +241,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,
.gpio_wp = 17,
.gpio_cd = 16,
};

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,
.gpio_wp = 19,
.gpio_cd = 18,
};

/*
Expand Down

0 comments on commit 98b0979

Please sign in to comment.