From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: [PATCH 01/16] Input: Add Device Tree support to the ab8500-ponkey driver Date: Fri, 18 May 2012 09:39:00 +0100 Message-ID: <1337330355-17747-2-git-send-email-lee.jones@linaro.org> References: <1337330355-17747-1-git-send-email-lee.jones@linaro.org> Return-path: Received: from mail-wg0-f44.google.com ([74.125.82.44]:53297 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933136Ab2ERIjY (ORCPT ); Fri, 18 May 2012 04:39:24 -0400 Received: by wgbdr13 with SMTP id dr13so2556594wgb.1 for ; Fri, 18 May 2012 01:39:23 -0700 (PDT) In-Reply-To: <1337330355-17747-1-git-send-email-lee.jones@linaro.org> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linus.walleij@stericsson.com, grant.likely@secretlab.ca, cjb@laptop.org, broonie@opensource.wolfsonmicro.com, sameo@linux.intel.com Cc: Lee Jones , linux-input@vger.kernel.org This patch will allow the ab8500-ponkey driver to be probed during boot when Device Tree is enabled. Cc: linux-input@vger.kernel.org Signed-off-by: Lee Jones --- drivers/input/misc/ab8500-ponkey.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/input/misc/ab8500-ponkey.c b/drivers/input/misc/ab8500-ponkey.c index 350fd0c..394aa1f 100644 --- a/drivers/input/misc/ab8500-ponkey.c +++ b/drivers/input/misc/ab8500-ponkey.c @@ -131,10 +131,16 @@ static int __devexit ab8500_ponkey_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id ab8500_ponkey_match[] = { + { .compatible = "stericsson,ab8500-ponkey", }, + {} +}; + static struct platform_driver ab8500_ponkey_driver = { .driver = { .name = "ab8500-poweron-key", .owner = THIS_MODULE, + .of_match_table = ab8500_ponkey_match, }, .probe = ab8500_ponkey_probe, .remove = __devexit_p(ab8500_ponkey_remove), -- 1.7.9.5