From patchwork Fri May 18 08:39:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 8786 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 533F823E23 for ; Fri, 18 May 2012 08:39:26 +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 1D909A1819F for ; Fri, 18 May 2012 08:39:26 +0000 (UTC) Received: by ggnf1 with SMTP id f1so3204914ggn.11 for ; Fri, 18 May 2012 01:39:25 -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=ZJAXMS9OyjtessjVymafb3k12HbeTRSGzQIM30gXc30=; b=o4xI+ve505vXBg7VGZzO7HZdvmQ43ckX5Syu0a605rvkYV03s/mdWOtTNyAqP91aNH FRAhUYV4gE9juQHAZpHQJwlyuDEJ/SRwsEk3r6dcHQXP8bXRywyrbvpXTEHuJjPMhW5p Lsx11GafjG92HBAdesWTB2U84Zg3A60fCk3ZC1l5FMA85+4T8/uFfw4IZoUTbS85G8dc T0HVPuUY6MBxtdJZPLfIk+X35BkC0aWC8Bfey1EWGBaZjq2r/5Kih9OtFgYE4SyBwu+I +Y4nJE+s/GY5U12JuJFWqF5OhuC29/qU0djQLwYVaa3LeXh8sKarnKHZOfEnqwWFzp8/ UWJQ== Received: by 10.50.185.233 with SMTP id ff9mr15692139igc.57.1337330365478; Fri, 18 May 2012 01:39:25 -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.35.72 with SMTP id o8csp86419ibd; Fri, 18 May 2012 01:39:24 -0700 (PDT) Received: by 10.180.80.104 with SMTP id q8mr26017500wix.14.1337330363704; Fri, 18 May 2012 01:39:23 -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 o43si10523287wee.144.2012.05.18.01.39.23 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 May 2012 01:39:23 -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 wgbds11 with SMTP id ds11so2667382wgb.31 for ; Fri, 18 May 2012 01:39:23 -0700 (PDT) Received: by 10.216.134.2 with SMTP id r2mr6774884wei.31.1337330362942; Fri, 18 May 2012 01:39:22 -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 bn9sm63091322wib.5.2012.05.18.01.39.21 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 May 2012 01:39:22 -0700 (PDT) From: Lee Jones 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 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> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1337330355-17747-1-git-send-email-lee.jones@linaro.org> References: <1337330355-17747-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkZNgfc0gUFCuY04bTAw1gmEUI98rXZGW5Zoht3xXVZCN8Gpj56JNFumdrjbqRsWKiT17ao 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),