From patchwork Mon Jun 11 15:25:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 9202 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id DFE1323EB4 for ; Mon, 11 Jun 2012 15:25:43 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id AF1A3A186A7 for ; Mon, 11 Jun 2012 15:25:43 +0000 (UTC) Received: by mail-gg0-f180.google.com with SMTP id f1so2843382ggn.11 for ; Mon, 11 Jun 2012 08:25:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=2gEQV8Hal3J1CT76xFiZFXqRRDV7dGgJpqlpbiaNAcI=; b=kKABm0BKKLOAFmZ5ENsffFe7z6Z68T4V7lyIRdn3AO1LH3Mn6vSWdgt1cuWKLyd3Ov OHlZ6DgNny/n3el9E+qcp7Ei3NGfgU6IvJOsDO7dtySfGxspUAPoA/1gEsg+EPdphae/ THvGC/b2rmWuWr+etVYEzZaTphoIxl3l9hynIzfur0yGg3Uy7C9wA2Jv1mu674/QE/hA RZEnLD0I1rrBA2fMmT4T4IL/QfaddpbcjupzzLMjqvHFzbb2fuUdQIKDPg/T8KFJBtCx NDcyFPDCQWTCHTDtrvj7x32szMt/KMDC7kyrkHHCBmRd4XD0cyzAWJ6RsHSdPv2g6Ott 27Vg== Received: by 10.50.87.227 with SMTP id bb3mr6473973igb.57.1339428343328; Mon, 11 Jun 2012 08:25:43 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp115741ibb; Mon, 11 Jun 2012 08:25:42 -0700 (PDT) Received: by 10.204.145.79 with SMTP id c15mr10320753bkv.60.1339428341902; Mon, 11 Jun 2012 08:25:41 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id a59si24387284wel.52.2012.06.11.08.25.41 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jun 2012 08:25:41 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wg0-f50.google.com with SMTP id ds11so3345557wgb.31 for ; Mon, 11 Jun 2012 08:25:41 -0700 (PDT) Received: by 10.216.207.85 with SMTP id m63mr6872492weo.183.1339428341343; Mon, 11 Jun 2012 08:25:41 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id ch9sm39413606wib.8.2012.06.11.08.25.39 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jun 2012 08:25:40 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linus.walleij@stericsson.com, arnd@arndb.de, grant.likely@secretlab.ca, Lee Jones , linux-input@vger.kernel.org Subject: [PATCH 10/14] Input: Add Device Tree support to the ab8500-ponkey driver Date: Mon, 11 Jun 2012 16:25:03 +0100 Message-Id: <1339428307-3850-11-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1339428307-3850-1-git-send-email-lee.jones@linaro.org> References: <1339428307-3850-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQn6nHX7dbZWimo95kitGYh2rSgbaRxX5o8xKBra6rQOJXlFGeXvg86iGM46FLgNSSy33zGd This patch will allow the ab8500-ponkey driver to be probed during boot when Device Tree is enabled. Cc: linux-input@vger.kernel.org Acked-by: Linus Walleij 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),