From patchwork Wed May 30 04:47:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 9040 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 0B6AC23E58 for ; Wed, 30 May 2012 04:49:07 +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 C7FCBA185A3 for ; Wed, 30 May 2012 04:49:06 +0000 (UTC) Received: by mail-gg0-f180.google.com with SMTP id f1so3863496ggn.11 for ; Tue, 29 May 2012 21:49:06 -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=eD197d3vJZXB7k63Pxsk4XUN8ijyRbI0u1Hjz03RZjs=; b=UhAU/SIv/bXm2o5xgG44reB3GEw43V4XL7jbVjXvUdbG2GnNK1VPfSQWCKPB51Ergq Y5HrGFO1k9eTly/+i7Tbs57FBQl0FbnCPzYsjvwV8aei0zQKlEu5HM/zd2Oxiyt9cp80 c5E8CkWK6R95V8BCGxXnh+jyjlb8y+7qP0E5+3d3k2SjrFxdn1mv8ZgaLKbUoQvF8wF1 FxOHuOEv4KRLEztW6zzi/0V0iuF2tUgxzq2iwArC91TENOdfv+/QIZMSl1Y/xh9TgZ8x q2WJpg4zY7TJNSeNeuTc+WAo7CxyC6H6XTXxr1RXC3Br1X2JjVqXT+ie0L2RwF2VZCwi IKJw== Received: by 10.42.210.193 with SMTP id gl1mr5610339icb.57.1338353346388; Tue, 29 May 2012 21:49:06 -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 v20csp170301ibb; Tue, 29 May 2012 21:49:05 -0700 (PDT) Received: by 10.68.213.102 with SMTP id nr6mr39668005pbc.112.1338353345779; Tue, 29 May 2012 21:49:05 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id kg6si23391939pbc.215.2012.05.29.21.49.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 May 2012 21:49:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.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-pb0-f50.google.com with SMTP id rr4so7848714pbb.37 for ; Tue, 29 May 2012 21:49:05 -0700 (PDT) Received: by 10.68.238.228 with SMTP id vn4mr45007787pbc.132.1338353345574; Tue, 29 May 2012 21:49:05 -0700 (PDT) Received: from localhost.localdomain ([118.143.64.134]) by mx.google.com with ESMTPS id kd6sm25122557pbc.24.2012.05.29.21.49.02 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 May 2012 21:49:05 -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-kernel@vger.kernel.org Subject: [PATCH 22/22] mfd: Enable DT probing of the DB8500 PRCMU Date: Wed, 30 May 2012 12:47:40 +0800 Message-Id: <1338353260-10097-23-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1338353260-10097-1-git-send-email-lee.jones@linaro.org> References: <1338353260-10097-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQlhhxpcYs7HpRsh0OLTqLawOsRI39+2kCxZkVS7hDH57r1X8ubkcZjSTHlcUavAGcAPV/YR This patch adds the correct compatible string for use during Device Tree population. Without it the DB8500 PRCMU will not be probed. Cc: Samuel Ortiz Cc: linux-kernel@vger.kernel.org Signed-off-by: Lee Jones --- drivers/mfd/db8500-prcmu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index 74595e1..01f01f3 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c @@ -2994,11 +2994,16 @@ static int __init 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, }, };