aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-08-07 12:40:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-08-07 12:40:53 +0000
commitff536dcd1ca51df92622d7e9216e4cd908f07837 (patch)
tree678abd256de087993fc1dd84f181aacf099d5b04 /target/linux/ar71xx/files/arch/mips/ath79
parentce71c40c2491c5ce841e62b9ce0e73efb6339049 (diff)
downloadmaster-187ad058-ff536dcd1ca51df92622d7e9216e4cd908f07837.tar.gz
master-187ad058-ff536dcd1ca51df92622d7e9216e4cd908f07837.tar.bz2
master-187ad058-ff536dcd1ca51df92622d7e9216e4cd908f07837.zip
ar71xx: add linux 3.14 support
Signed-off-by: Zhao, Gang <gang.zhao.42@gmail.com> Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42038 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-alfa-ap96.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-alfa-ap96.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-alfa-ap96.c
index 15abb081fe..f7cd6aedfd 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-alfa-ap96.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-alfa-ap96.c
@@ -48,13 +48,10 @@ static struct gpio_keys_button alfa_ap96_gpio_keys[] __initdata = {
}
};
-static int alfa_ap96_mmc_get_cd(struct device *dev)
-{
- return !gpio_get_value(ALFA_AP96_GPIO_MICROSD_CD);
-}
-
static struct mmc_spi_platform_data alfa_ap96_mmc_data = {
- .get_cd = alfa_ap96_mmc_get_cd,
+ .flags = MMC_SPI_USE_CD_GPIO,
+ .cd_gpio = ALFA_AP96_GPIO_MICROSD_CD,
+ .cd_debounce = 1,
.caps = MMC_CAP_NEEDS_POLL,
.ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34,
};