From patchwork Fri May 18 08:39:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 8798 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 E9ECF23E23 for ; Fri, 18 May 2012 08:39:46 +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 B2155A1819F for ; Fri, 18 May 2012 08:39:46 +0000 (UTC) Received: by mail-gg0-f180.google.com with SMTP id f1so3204914ggn.11 for ; Fri, 18 May 2012 01:39:46 -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=OOjP6HkUm/5TCp9+8lX/rk4bTDJm7NF5+QJG5DZvWxY=; b=h8D9qa6i9/jfiPgpuZPBaySzAOpRqMU+IOzBmIhLea/67u5BAhioAca5RG4FKCQRaQ 9nv+Nd16W/yIsK2552AqOIWFMAMU9Hf1VlzaiYpTVpSOwQE7+7f544xJs4WUsYnj2F8j kRj/NOlaBWxHj3QuPnq01zWHORYJ/dD4hJX/owVqcHPsOsLngTrycteHKE0FWHTneaEU zPsP03+5LrpRZTn5nS+5pUxQuLU2gsAM5tnb/APY37RIV9Z4MJcbm/5IvlGERMdyIWCq RuG32//RNfd+f+0bsC5a0COJsG5ufotMpxQRVj4ALmuaMUK7T/HG1xfyJqq7FNMxieX+ u+hQ== Received: by 10.50.195.234 with SMTP id ih10mr7960012igc.0.1337330386403; Fri, 18 May 2012 01:39:46 -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 o8csp86471ibd; Fri, 18 May 2012 01:39:45 -0700 (PDT) Received: by 10.180.86.197 with SMTP id r5mr24453890wiz.21.1337330385344; Fri, 18 May 2012 01:39:45 -0700 (PDT) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx.google.com with ESMTPS id w20si10595566wes.24.2012.05.18.01.39.44 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 May 2012 01:39:45 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.178 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-wi0-f178.google.com with SMTP id hn6so2212789wib.13 for ; Fri, 18 May 2012 01:39:44 -0700 (PDT) Received: by 10.180.107.104 with SMTP id hb8mr26045852wib.8.1337330384870; Fri, 18 May 2012 01:39:44 -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.43 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 May 2012 01:39:44 -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 Subject: [PATCH 13/16] mfd: Enable Device Tree support in the ab8500-pwm driver Date: Fri, 18 May 2012 09:39:12 +0100 Message-Id: <1337330355-17747-14-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: ALoCoQkiHfdKm3OQ752LhxNi2904p21RAXp98IGVUtri8HiK3+hr2HNp7rOEVD+k+5LA5/PVgZx8 This patch ensures probing of the ab8500-pwm driver during a DT enabled boot, so long as the associated nodes are present in the Device Tree binary. Signed-off-by: Lee Jones --- drivers/misc/ab8500-pwm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/misc/ab8500-pwm.c b/drivers/misc/ab8500-pwm.c index d7a9aa1..042a8fe 100644 --- a/drivers/misc/ab8500-pwm.c +++ b/drivers/misc/ab8500-pwm.c @@ -142,10 +142,16 @@ static int __devexit ab8500_pwm_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id ab8500_pwm_match[] = { + { .compatible = "stericsson,ab8500-pwm", }, + {} +}; + static struct platform_driver ab8500_pwm_driver = { .driver = { .name = "ab8500-pwm", .owner = THIS_MODULE, + .of_match_table = ab8500_pwm_match, }, .probe = ab8500_pwm_probe, .remove = __devexit_p(ab8500_pwm_remove),