From patchwork Fri Jul 27 12:38:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 10309 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 41FB123E23 for ; Fri, 27 Jul 2012 12:39:10 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 0B034A1912F for ; Fri, 27 Jul 2012 12:39:09 +0000 (UTC) Received: by ghbz12 with SMTP id z12so3098255ghb.11 for ; Fri, 27 Jul 2012 05:39:09 -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=SdI7LZdalMOBvBLhl4ZCga59cTt64atmk5G88xZB4uI=; b=PvZ2B2rtnuEY0U2ZjiiyGWv15XmiRuGyqrj1e2tCtUOcKaY4GqGmNPr/UkpzggAAYI 6GVIMVKPXkD6z+Z/ihxZV+oug3WNtpuSuAx2dvGcqZtGBQo0FmlUkv8b4MRMFronGKGt nuPJbQc3VURPRrZDYJhdlQ8jfw7clufBzZ1kzHSnXjKhWtNYh1L2DYADmiCdjTnl/dxJ dX3YpSPjne1mtOE5QpLpqC6X0+6hC0SCtHt8mKMsFn39CIBTOG4Kzd+hDZff4MOzSC+i KHcEwpbQ9u56smaQiZRjZXQ0uY5L9jQbmwkHuzoBrwhGdNYgX9/Xg1AChW/z8hG4sCEX DbNw== Received: by 10.50.87.201 with SMTP id ba9mr4420872igb.66.1343392749233; Fri, 27 Jul 2012 05:39:09 -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.43.93.3 with SMTP id bs3csp29404icc; Fri, 27 Jul 2012 05:39:08 -0700 (PDT) Received: by 10.216.139.15 with SMTP id b15mr1249244wej.169.1343392748042; Fri, 27 Jul 2012 05:39:08 -0700 (PDT) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id f12si2658572wed.26.2012.07.27.05.39.07 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jul 2012 05:39:08 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.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-we0-f178.google.com with SMTP id u7so2417221wey.37 for ; Fri, 27 Jul 2012 05:39:07 -0700 (PDT) Received: by 10.216.241.200 with SMTP id g50mr1203621wer.79.1343392746406; Fri, 27 Jul 2012 05:39:06 -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 ef5sm6242502wib.3.2012.07.27.05.39.04 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jul 2012 05:39:05 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: STEricsson_nomadik_linux@list.st.com, linus.walleij@stericsson.com, arnd@arndb.de, olalilja@yahoo.se, ola.o.lilja@stericsson.com, sameo@linux.intel.com, alsa-devel@alsa-project.org, broonie@opensource.wolfsonmicro.com, lrg@ti.com, Lee Jones Subject: [PATCH 3/7] mfd: db8500-prcmu: Ensure AB8500 platform data is passed through MFD Core Date: Fri, 27 Jul 2012 13:38:50 +0100 Message-Id: <1343392734-11805-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1343392734-11805-1-git-send-email-lee.jones@linaro.org> References: <1343392734-11805-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnggXuDKRhU/4QE7VgYwiHrp5ouBcCUyjd78Fsjcy7P9q9qcFu5cXKx0Y3yTL/9uUvpdmTb When booting via platform code the AB8500 platform data is now passed in though the DB8500. However, if pdata_size is not set it will not be subsequently passed onto subordinate devices. This patch correctly populates pdata_size. Signed-off-by: Lee Jones --- drivers/mfd/db8500-prcmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index 4050a1e..7040a00 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c @@ -3002,6 +3002,7 @@ static int __devinit db8500_prcmu_probe(struct platform_device *pdev) for (i = 0; i < ARRAY_SIZE(db8500_prcmu_devs); i++) { if (!strcmp(db8500_prcmu_devs[i].name, "ab8500-core")) { db8500_prcmu_devs[i].platform_data = ab8500_platdata; + db8500_prcmu_devs[i].pdata_size = sizeof(struct ab8500_platform_data); } }