From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lb0-f177.google.com ([209.85.217.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TgWZb-00088T-Sp for barebox@lists.infradead.org; Thu, 06 Dec 2012 08:12:49 +0000 Received: by mail-lb0-f177.google.com with SMTP id n10so4684655lbo.36 for ; Thu, 06 Dec 2012 00:12:45 -0800 (PST) From: Antony Pavlov Date: Thu, 6 Dec 2012 12:12:38 +0400 Message-Id: <1354781558-15463-1-git-send-email-antonynpavlov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] at91: add_gpio_keys_device: fix missing conversion to DEVICE_ID_DYNAMIC To: barebox@lists.infradead.org Signed-off-by: Antony Pavlov --- 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