9
0
Fork 0

ARM: at91: use -EINVAL for invalid gpio on atmel_mci

Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Fabio Porcedda 2013-02-19 11:31:21 +01:00 committed by Sascha Hauer
parent d7ff8c47ec
commit 19f8f1166d
7 changed files with 11 additions and 1 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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 = {

View File

@ -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)

View File

@ -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)

View File

@ -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)