mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] at91: add_gpio_keys_device: fix missing conversion to DEVICE_ID_DYNAMIC
@ 2012-12-06  8:12 Antony Pavlov
  2012-12-06 13:42 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2012-12-06  8:12 UTC (permalink / raw)
  To: barebox

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 arch/arm/boards/at91sam9261ek/init.c    |    2 +-
 arch/arm/boards/at91sam9m10g45ek/init.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/at91sam9261ek/init.c b/arch/arm/boards/at91sam9261ek/init.c
index 636da12..8842cfe 100644
--- a/arch/arm/boards/at91sam9261ek/init.c
+++ b/arch/arm/boards/at91sam9261ek/init.c
@@ -180,7 +180,7 @@ static void ek_add_device_keyboard_buttons(void)
 		at91_set_deglitch(keys[i].gpio, 1);
 	}
 
-	add_gpio_keys_device(-1, &gk_pdata);
+	add_gpio_keys_device(DEVICE_ID_DYNAMIC, &gk_pdata);
 }
 #else
 static void ek_add_device_keyboard_buttons(void) {}
diff --git a/arch/arm/boards/at91sam9m10g45ek/init.c b/arch/arm/boards/at91sam9m10g45ek/init.c
index 0c03dea..4b6d5c4 100644
--- a/arch/arm/boards/at91sam9m10g45ek/init.c
+++ b/arch/arm/boards/at91sam9m10g45ek/init.c
@@ -204,7 +204,7 @@ static void ek_device_add_keyboard(void)
 		at91_set_deglitch(keys[i].gpio, 1);
 	}
 
-	add_gpio_keys_device(-1, &gk_pdata);
+	add_gpio_keys_device(DEVICE_ID_DYNAMIC, &gk_pdata);
 }
 #else
 static void ek_device_add_keyboard(void) {}
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] at91: add_gpio_keys_device: fix missing conversion to DEVICE_ID_DYNAMIC
  2012-12-06  8:12 [PATCH] at91: add_gpio_keys_device: fix missing conversion to DEVICE_ID_DYNAMIC Antony Pavlov
@ 2012-12-06 13:42 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2012-12-06 13:42 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

On Thu, Dec 06, 2012 at 12:12:38PM +0400, Antony Pavlov wrote:
> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> ---

Applied, thanks

Sascha

>  arch/arm/boards/at91sam9261ek/init.c    |    2 +-
>  arch/arm/boards/at91sam9m10g45ek/init.c |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/boards/at91sam9261ek/init.c b/arch/arm/boards/at91sam9261ek/init.c
> index 636da12..8842cfe 100644
> --- a/arch/arm/boards/at91sam9261ek/init.c
> +++ b/arch/arm/boards/at91sam9261ek/init.c
> @@ -180,7 +180,7 @@ static void ek_add_device_keyboard_buttons(void)
>  		at91_set_deglitch(keys[i].gpio, 1);
>  	}
>  
> -	add_gpio_keys_device(-1, &gk_pdata);
> +	add_gpio_keys_device(DEVICE_ID_DYNAMIC, &gk_pdata);
>  }
>  #else
>  static void ek_add_device_keyboard_buttons(void) {}
> diff --git a/arch/arm/boards/at91sam9m10g45ek/init.c b/arch/arm/boards/at91sam9m10g45ek/init.c
> index 0c03dea..4b6d5c4 100644
> --- a/arch/arm/boards/at91sam9m10g45ek/init.c
> +++ b/arch/arm/boards/at91sam9m10g45ek/init.c
> @@ -204,7 +204,7 @@ static void ek_device_add_keyboard(void)
>  		at91_set_deglitch(keys[i].gpio, 1);
>  	}
>  
> -	add_gpio_keys_device(-1, &gk_pdata);
> +	add_gpio_keys_device(DEVICE_ID_DYNAMIC, &gk_pdata);
>  }
>  #else
>  static void ek_device_add_keyboard(void) {}
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-06 13:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-06  8:12 [PATCH] at91: add_gpio_keys_device: fix missing conversion to DEVICE_ID_DYNAMIC Antony Pavlov
2012-12-06 13:42 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox