From 2e63fd2f991b1649deea04d6ea9e2bf3445f4f91 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Thu, 17 Nov 2011 22:39:40 +0100 Subject: [PATCH] --- yaml --- r: 281807 b: refs/heads/master c: a15164f13fb3f0f70849c2a099ff0af7b2924ba1 h: refs/heads/master i: 281805: cf41cb05bd48d350aa9bb2c517ee32f5cff6ff67 281803: 0af3e2a147000ceda5329d575414e7cdd495f89d 281799: e02373a6aa45aeac562472339cea83c386bd12d8 281791: 44052fb2f678a18190dab45c5cf8c944e2ad7d02 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-omap2/hsmmc.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index a90d51863b6a..da8ac5c7a33c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e62245ba1caaf78d6fe2619266939c8e7caa150c +refs/heads/master: a15164f13fb3f0f70849c2a099ff0af7b2924ba1 diff --git a/trunk/arch/arm/mach-omap2/hsmmc.c b/trunk/arch/arm/mach-omap2/hsmmc.c index 59830d0eeb55..997b33d76418 100644 --- a/trunk/arch/arm/mach-omap2/hsmmc.c +++ b/trunk/arch/arm/mach-omap2/hsmmc.c @@ -214,10 +214,12 @@ static int nop_mmc_set_power(struct device *dev, int slot, int power_on, static inline void omap_hsmmc_mux(struct omap_mmc_platform_data *mmc_controller, int controller_nr) { - if (gpio_is_valid(mmc_controller->slots[0].switch_pin)) + if (gpio_is_valid(mmc_controller->slots[0].switch_pin) && + (mmc_controller->slots[0].switch_pin < OMAP_MAX_GPIO_LINES)) omap_mux_init_gpio(mmc_controller->slots[0].switch_pin, OMAP_PIN_INPUT_PULLUP); - if (gpio_is_valid(mmc_controller->slots[0].gpio_wp)) + if (gpio_is_valid(mmc_controller->slots[0].gpio_wp) && + (mmc_controller->slots[0].gpio_wp < OMAP_MAX_GPIO_LINES)) omap_mux_init_gpio(mmc_controller->slots[0].gpio_wp, OMAP_PIN_INPUT_PULLUP); if (cpu_is_omap34xx()) {