From patchwork Fri May 18 08:39:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 8796 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 5D98223E23 for ; Fri, 18 May 2012 08:39:43 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 2D148A18327 for ; Fri, 18 May 2012 08:39:43 +0000 (UTC) Received: by mail-yw0-f52.google.com with SMTP id p61so3161765yhp.11 for ; Fri, 18 May 2012 01:39: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=oxUGEpUJWPkIWIVRoIFZCApJaJ8vki9IREuKqBeTCk0=; b=iWJxXI69XqyO/sY8IzkhbQnhQzKH9SdOKjw0ntPZn/lov584D/7Cxa/pw8HneGMVLN 9dGwnoKAQW5m4phCzB/FL3KGTdqFftn+HL7rfieLuAVHvpQ152bFO5GJlzc6cwHkO9OU 14ZC93upN57AEgl5oJrcuTFl5/tkIknAcPQUHqgwpzBjtgszq3HgTdk9o+L3DZ8/TquD qLi3kCmAheAIwXw1LSBMl7KO06zy9N0xNMVYv7Qyl0QE6j3uJZmFFcf506rGCBAUOr4X 32f0/w26a9JbF6swajQ6BVfkrbZGZVIflfc0r+XZDgxEAxUA/1WynUrF+UMhbvK/8KFV sa/Q== Received: by 10.50.87.227 with SMTP id bb3mr7684541igb.57.1337330382805; Fri, 18 May 2012 01:39:42 -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 o8csp86457ibd; Fri, 18 May 2012 01:39:42 -0700 (PDT) Received: by 10.180.81.234 with SMTP id d10mr26028983wiy.10.1337330381730; Fri, 18 May 2012 01:39:41 -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.41 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 May 2012 01:39:41 -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:41 -0700 (PDT) Received: by 10.180.107.101 with SMTP id hb5mr26214875wib.7.1337330381295; Fri, 18 May 2012 01:39: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 bn9sm63091322wib.5.2012.05.18.01.39.39 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 May 2012 01:39:40 -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 11/16] mfd: Enable Device Tree support in the ab8500-sysctrl driver Date: Fri, 18 May 2012 09:39:10 +0100 Message-Id: <1337330355-17747-12-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: ALoCoQnk/fESp/3pZW+o7NoIAH0F/56EPmf9drxkeYWfiDkuFGFNF5R9Rr6WKGGLTcLKyqKi9aEa This patch ensures probing of the ab8500-sysctrl 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/mfd/ab8500-sysctrl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mfd/ab8500-sysctrl.c b/drivers/mfd/ab8500-sysctrl.c index c28d4eb..5a3e51c 100644 --- a/drivers/mfd/ab8500-sysctrl.c +++ b/drivers/mfd/ab8500-sysctrl.c @@ -61,10 +61,16 @@ static int __devexit ab8500_sysctrl_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id ab8500_sysctrl_match[] = { + { .compatible = "stericsson,ab8500-sysctrl", }, + {} +}; + static struct platform_driver ab8500_sysctrl_driver = { .driver = { .name = "ab8500-sysctrl", .owner = THIS_MODULE, + .of_match_table = ab8500_sysctrl_match, }, .probe = ab8500_sysctrl_probe, .remove = __devexit_p(ab8500_sysctrl_remove),