From patchwork Tue Apr 17 10:44:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 7900 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 BBC3123E00 for ; Tue, 17 Apr 2012 10:45:17 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 7FF03A181C2 for ; Tue, 17 Apr 2012 10:45:17 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so12004590iag.11 for ; Tue, 17 Apr 2012 03:45:17 -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=N+y4Ff0d3gml8+dLvBeIHha2u5+qyU0f/B+vKtXaaAI=; b=e5jPYWhrt3O36D0gdAXWTUUUM5lDifzRH/z/WcTIoJzEtNA1Ueqer53oOyODv2/ln1 allUCnZ4nnXM3LNlUSAgTHUHqjU3lReMgNFYn5tvygH3BDUeSD/G5TKXx3CeQt4HBnOJ oGPML7IoriHeIJQVc5PCRIm/zJdVsBiwduzijKYdzCfvp0RWxjRfRWIG8pXeLL3wK7TQ rXd7/rcmQkjZXHA7s/iMVJsjY3X700w9MyVqEL/FHkrsHZ/iv7ELdYFIx3JrfroOEMYb vgpbPIlIlQw44z7/8HPL0qZA3KioBIXS/nrveeEhjM8D1yvcZu5ebq5DX+cKml8i+orp isYg== Received: by 10.50.41.201 with SMTP id h9mr8891873igl.19.1334659517286; Tue, 17 Apr 2012 03:45:17 -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.137.198 with SMTP id x6csp138726ibt; Tue, 17 Apr 2012 03:45:16 -0700 (PDT) Received: by 10.180.88.199 with SMTP id bi7mr27257026wib.12.1334659516182; Tue, 17 Apr 2012 03:45:16 -0700 (PDT) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mx.google.com with ESMTPS id k51si21481393weq.1.2012.04.17.03.45.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Apr 2012 03:45:16 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.170 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.170; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.170 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-f170.google.com with SMTP id hr17so487641wib.1 for ; Tue, 17 Apr 2012 03:45:15 -0700 (PDT) Received: by 10.180.97.4 with SMTP id dw4mr5870116wib.18.1334659515741; Tue, 17 Apr 2012 03:45:15 -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 fn2sm42069492wib.0.2012.04.17.03.45.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Apr 2012 03:45:15 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, grant.likely@secretlab.ca, cjb@laptop.org, linux@arm.linux.org.uk, Lee Jones Subject: [PATCH 13/16] mfd/db8500-prcmu: Add Device Tree support Date: Tue, 17 Apr 2012 11:44:05 +0100 Message-Id: <1334659448-11521-14-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1334659448-11521-1-git-send-email-lee.jones@linaro.org> References: <1334659448-11521-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnIZxICRuMvvjCiSaVHueuDqYDNPU1vgDi8rziofZ/+D33tlF9dLjoGorEmvtvgJxO5+q7p Here we see the db8500-prcmu driver obtain DT support. In its current state, all we have to do is offer a matching compatible node and the driver will register and initialise correctly. Signed-off-by: Lee Jones --- drivers/mfd/db8500-prcmu.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index 839e70b..3c2e4a9 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c @@ -2992,11 +2992,16 @@ static int __devinit db8500_prcmu_probe(struct platform_device *pdev) no_irq_return: return err; } +static const struct of_device_id db8500_prcmu_match[] = { + { .compatible = "stericsson,db8500-prcmu"}, + { }, +}; static struct platform_driver db8500_prcmu_driver = { .driver = { .name = "db8500-prcmu", .owner = THIS_MODULE, + .of_match_table = db8500_prcmu_match, }, .probe = db8500_prcmu_probe, };