summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/tny-a926x/init.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-12-20 15:31:46 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-12-22 16:40:33 +0100
commit6f7b297b7a7a1fc7cf55010ef863c59156175bd9 (patch)
tree3d17c51d344229e199164064f831de2d747f92b7 /arch/arm/boards/tny-a926x/init.c
parent8ad572546546990161f3f29e0f9cfc7928ca2892 (diff)
downloadbarebox-6f7b297b7a7a1fc7cf55010ef863c59156175bd9.tar.gz
barebox-6f7b297b7a7a1fc7cf55010ef863c59156175bd9.tar.xz
at91: use -EINVAL for invalid gpio
switch gpio type from u8 to int in the data struct Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/tny-a926x/init.c')
-rw-r--r--arch/arm/boards/tny-a926x/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/boards/tny-a926x/init.c b/arch/arm/boards/tny-a926x/init.c
index 98f1d2b52e..e30cccfc6c 100644
--- a/arch/arm/boards/tny-a926x/init.c
+++ b/arch/arm/boards/tny-a926x/init.c
@@ -52,7 +52,7 @@ static void tny_a9260_set_board_type(void)
static struct atmel_nand_data nand_pdata = {
.ale = 21,
.cle = 22,
- .det_pin = 0,
+ .det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PC13,
.enable_pin = AT91_PIN_PC14,
.on_flash_bbt = 1,
@@ -132,7 +132,7 @@ static void __init ek_add_device_macb(void) {}
*/
static struct at91_udc_data __initdata ek_udc_data = {
.vbus_pin = AT91_PIN_PB30,
- .pullup_pin = 0, /* pull-up driven by UDC */
+ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
};
static struct spi_eeprom eeprom = {