From patchwork Wed May 8 13:29:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 16800 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B774A238FB for ; Wed, 8 May 2013 13:30:43 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id 12sf2226834vbf.8 for ; Wed, 08 May 2013 06:30:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=btRUh0Ebh6DmnYqCI29Zd6DFjeW61lqwjdVKlrXlSfE=; b=By2zSSFpsU6Cwh5Yv9T3xntdvyF+s4bewk6nzixYuBmVz9ZRy1gFK/asY1WTQ1UVbJ 7RPDX4/IuIoOWTjeNdPOVWjLrAQVsSS4YWQ6+S+9oElMUS0v1rpu5GFOZp1jxvvTdBnH AGp8TbU36prpTVf6ARcqfeKz404eLrf/7Sr/fc9LQTawzekby8T/yy/7vWv3BxBVFefj SqmeHbAYkkt2D2UGDIPHjKdMPegHLIpNe0FN3F2k+88LgRHQtOaLktO13WM5vEjTvEfx IHLmzlukAsbWh+1Zch5i4aKb7w4opzFlh6Iz3s7QXSuMlKsL8hq+aQX3jgpLeuNd0Soj CffA== X-Received: by 10.236.230.72 with SMTP id i68mr3668147yhq.23.1368019822435; Wed, 08 May 2013 06:30:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.98.2 with SMTP id ee2ls910899qeb.11.gmail; Wed, 08 May 2013 06:30:22 -0700 (PDT) X-Received: by 10.58.250.66 with SMTP id za2mr4456056vec.56.1368019822107; Wed, 08 May 2013 06:30:22 -0700 (PDT) Received: from mail-vb0-x234.google.com (mail-vb0-x234.google.com [2607:f8b0:400c:c02::234]) by mx.google.com with ESMTPS id by3si11454290vdc.30.2013.05.08.06.30.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 May 2013 06:30:22 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::234 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::234; Received: by mail-vb0-f52.google.com with SMTP id p13so1527540vbe.39 for ; Wed, 08 May 2013 06:30:22 -0700 (PDT) X-Received: by 10.220.168.6 with SMTP id s6mr3469763vcy.41.1368019822037; Wed, 08 May 2013 06:30:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp6885veb; Wed, 8 May 2013 06:30:21 -0700 (PDT) X-Received: by 10.180.73.228 with SMTP id o4mr22019056wiv.12.1368019821082; Wed, 08 May 2013 06:30:21 -0700 (PDT) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [2a00:1450:400c:c05::235]) by mx.google.com with ESMTPS id br13si1933835wib.21.2013.05.08.06.30.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 May 2013 06:30:21 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::235 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c05::235; Received: by mail-wi0-f181.google.com with SMTP id ey16so1941749wid.8 for ; Wed, 08 May 2013 06:30:20 -0700 (PDT) X-Received: by 10.180.205.135 with SMTP id lg7mr21969587wic.11.1368019820710; Wed, 08 May 2013 06:30:20 -0700 (PDT) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPSA id h8sm7063221wiz.9.2013.05.08.06.30.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 May 2013 06:30:19 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, srinidhi.kasagar@stericsson.com, Lee Jones , Samuel Ortiz Subject: [PATCH 9/9] mfd: ab8500-core: Pass GPADC compatible string to MFD core Date: Wed, 8 May 2013 14:29:09 +0100 Message-Id: <1368019749-19455-10-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1368019749-19455-1-git-send-email-lee.jones@linaro.org> References: <1368019749-19455-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQmchba/FY/n1WdbaBCPdGqt6XPhXoTFtAK5XIBdEip4Czi1xjsI4pgtUR08i5uIhn2flNYJ X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::234 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , When booting with Device Tree enabled the MFD core uses each device's compatible string to find and allocate its associated of_node pointer, which in turn is passed to the driver via the platform_device struct. Without it, the driver won't be able to interrogate the Device Tree or locate suitable regulators and will most likely fail to probe. Cc: Samuel Ortiz Signed-off-by: Lee Jones --- drivers/mfd/ab8500-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index 2047485..983eb1e 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c @@ -1060,6 +1060,7 @@ static struct mfd_cell ab8500_devs[] = { }, { .name = "ab8500-gpadc", + .of_compatible = "stericsson,ab8500-gpadc", .num_resources = ARRAY_SIZE(ab8500_gpadc_resources), .resources = ab8500_gpadc_resources, }, @@ -1217,6 +1218,7 @@ static struct mfd_cell ab8505_devs[] = { }, { .name = "ab8500-gpadc", + .of_compatible = "stericsson,ab8500-gpadc", .num_resources = ARRAY_SIZE(ab8505_gpadc_resources), .resources = ab8505_gpadc_resources, }, @@ -1280,6 +1282,7 @@ static struct mfd_cell ab8540_devs[] = { }, { .name = "ab8500-gpadc", + .of_compatible = "stericsson,ab8500-gpadc", .num_resources = ARRAY_SIZE(ab8505_gpadc_resources), .resources = ab8505_gpadc_resources, },