[For master PATCH v2] ARM: at91: use -EINVAL for invalid gpio on atmel_mci
Fabio Porcedda
fabio.porcedda at gmail.com
Tue Feb 19 05:31:21 EST 2013
Signed-off-by: Fabio Porcedda <fabio.porcedda at gmail.com>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
v2:
- fix all the other boards using atmel_mci
arch/arm/boards/at91sam9260ek/init.c | 2 ++
arch/arm/boards/at91sam9m10g45ek/init.c | 1 +
arch/arm/boards/at91sam9m10ihd/init.c | 1 +
arch/arm/boards/dss11/init.c | 2 ++
arch/arm/boards/pm9g45/init.c | 2 +-
arch/arm/boards/qil-a9260/init.c | 2 ++
arch/arm/boards/usb-a926x/init.c | 2 ++
7 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boards/at91sam9260ek/init.c b/arch/arm/boards/at91sam9260ek/init.c
index 2d52f5a..144f979 100644
--- a/arch/arm/boards/at91sam9260ek/init.c
+++ b/arch/arm/boards/at91sam9260ek/init.c
@@ -168,6 +168,8 @@ static void at91sam9260ek_phy_reset(void)
static struct atmel_mci_platform_data __initdata ek_mci_data = {
.bus_width = 4,
.slot_b = 1,
+ .detect_pin = -EINVAL,
+ .wp_pin = -EINVAL,
};
static void ek_usb_add_device_mci(void)
diff --git a/arch/arm/boards/at91sam9m10g45ek/init.c b/arch/arm/boards/at91sam9m10g45ek/init.c
index 5b5e31b..0ae7171 100644
--- a/arch/arm/boards/at91sam9m10g45ek/init.c
+++ b/arch/arm/boards/at91sam9m10g45ek/init.c
@@ -114,6 +114,7 @@ static struct at91_ether_platform_data macb_pdata = {
static struct atmel_mci_platform_data ek_mci_data = {
.bus_width = 4,
.detect_pin = AT91_PIN_PD10,
+ .wp_pin = -EINVAL,
};
static void ek_add_device_mci(void)
diff --git a/arch/arm/boards/at91sam9m10ihd/init.c b/arch/arm/boards/at91sam9m10ihd/init.c
index f258caf..df63a91 100644
--- a/arch/arm/boards/at91sam9m10ihd/init.c
+++ b/arch/arm/boards/at91sam9m10ihd/init.c
@@ -96,6 +96,7 @@ static void ek_add_device_eth(void)
static struct atmel_mci_platform_data ek_mci0_data = {
.bus_width = 4,
.detect_pin = AT91_PIN_PC25,
+ .wp_pin = -EINVAL,
};
static void ek_add_device_mci(void)
diff --git a/arch/arm/boards/dss11/init.c b/arch/arm/boards/dss11/init.c
index 2920d5e..77ae46f 100644
--- a/arch/arm/boards/dss11/init.c
+++ b/arch/arm/boards/dss11/init.c
@@ -113,6 +113,8 @@ static void dss11_phy_reset(void)
static struct atmel_mci_platform_data dss11_mci_data = {
.slot_b = 1,
.bus_width = 4,
+ .detect_pin = -EINVAL,
+ .wp_pin = -EINVAL,
};
static struct at91_usbh_data dss11_usbh_data = {
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 720099b..69c66d5 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -83,8 +83,8 @@ static void pm_add_device_nand(void)
#if defined(CONFIG_MCI_ATMEL)
static struct atmel_mci_platform_data __initdata mci_data = {
.bus_width = 4,
- .wp_pin = 0,
.detect_pin = AT91_PIN_PD6,
+ .wp_pin = -EINVAL,
};
static void pm9g45_add_device_mci(void)
diff --git a/arch/arm/boards/qil-a9260/init.c b/arch/arm/boards/qil-a9260/init.c
index 2e131fe..e96204a 100644
--- a/arch/arm/boards/qil-a9260/init.c
+++ b/arch/arm/boards/qil-a9260/init.c
@@ -66,6 +66,8 @@ static void qil_a9260_add_device_nand(void)
#if defined(CONFIG_MCI_ATMEL)
static struct atmel_mci_platform_data __initdata qil_a9260_mci_data = {
.bus_width = 4,
+ .detect_pin = -EINVAL,
+ .wp_pin = -EINVAL,
};
static void qil_a9260_add_device_mci(void)
diff --git a/arch/arm/boards/usb-a926x/init.c b/arch/arm/boards/usb-a926x/init.c
index 2e3bbfa..7ae9020 100644
--- a/arch/arm/boards/usb-a926x/init.c
+++ b/arch/arm/boards/usb-a926x/init.c
@@ -213,6 +213,8 @@ static void usb_a9260_add_spi(void) {}
#if defined(CONFIG_MCI_ATMEL)
static struct atmel_mci_platform_data __initdata usb_a9260_mci_data = {
.bus_width = 4,
+ .detect_pin = -EINVAL,
+ .wp_pin = -EINVAL,
};
static void usb_a9260_add_device_mci(void)
--
1.8.1.1
More information about the barebox
mailing list