From 6f7b297b7a7a1fc7cf55010ef863c59156175bd9 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 20 Dec 2012 15:31:46 +0100 Subject: at91: use -EINVAL for invalid gpio switch gpio type from u8 to int in the data struct Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- arch/arm/boards/at91sam9n12ek/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/arm/boards/at91sam9n12ek/init.c') diff --git a/arch/arm/boards/at91sam9n12ek/init.c b/arch/arm/boards/at91sam9n12ek/init.c index 3d4ab5b0cc..51c4fb04a8 100644 --- a/arch/arm/boards/at91sam9n12ek/init.c +++ b/arch/arm/boards/at91sam9n12ek/init.c @@ -44,7 +44,7 @@ static struct atmel_nand_data nand_pdata = { .ale = 21, .cle = 22, - .det_pin = 0, + .det_pin = -EINVAL, .rdy_pin = AT91_PIN_PD5, .enable_pin = AT91_PIN_PD4, .ecc_mode = NAND_ECC_HW, @@ -186,7 +186,7 @@ static void ek_add_device_spi(void) */ static struct at91_udc_data __initdata ek_udc_data = { .vbus_pin = AT91_PIN_PB16, - .pullup_pin = 0, /* pull-up driven by UDC */ + .pullup_pin = -EINVAL, /* pull-up driven by UDC */ }; struct gpio_led leds[] = { -- cgit v1.2.3