From patchwork Thu Jul 26 10:28:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 10249 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 77DBC23E56 for ; Thu, 26 Jul 2012 10:29:19 +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 47F7EA18866 for ; Thu, 26 Jul 2012 10:29:19 +0000 (UTC) Received: by mail-gh0-f180.google.com with SMTP id z12so1774077ghb.11 for ; Thu, 26 Jul 2012 03:29:19 -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=Hj33bztr1x936btV4c2YCh/WxARJOQCAViT427gyBTp629YWdr4H/a0tsQyOfGfDe5 7/ZaF5oRJcLROBH/aepuREcmmseNaMyn7VDXS927ikYLHfgUJGOFUBtKcxfqIquSWhfg UHSw3z7kEU0uKpripwA9ZeAnWk/jj6KfjGsPKHPyuWPHftK8EB+mEcMkRDyASgRK8AG0 n1SfvtkQGtuEY7eXbIXWK0FSP2yopOyO6L5SeHiltBw9I2Wb6GxChqiU+7dI7l7YEiDn Z9HoGLYNyCCsCaZ6z/HH//lmKHCA326LjWuoXSzO+eHrgbXMn6yQef67v1sqQTHv6niW I3pQ== Received: by 10.50.209.73 with SMTP id mk9mr1167569igc.66.1343298558861; Thu, 26 Jul 2012 03:29:18 -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 bs3csp133345icc; Thu, 26 Jul 2012 03:29:18 -0700 (PDT) Received: by 10.180.98.69 with SMTP id eg5mr12342126wib.3.1343298556232; Thu, 26 Jul 2012 03:29:16 -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 b4si9830060wiz.1.2012.07.26.03.29.15 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Jul 2012 03:29:16 -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 wibhr14 with SMTP id hr14so1342799wib.13 for ; Thu, 26 Jul 2012 03:29:15 -0700 (PDT) Received: by 10.180.90.207 with SMTP id by15mr12229731wib.22.1343298555292; Thu, 26 Jul 2012 03:29: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 fb20sm11559455wid.1.2012.07.26.03.29.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Jul 2012 03:29:14 -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, broonie@opensource.wolfsonmicro.com, sameo@linux.intel.com, olalilja@yahoo.se, ola.o.lilja@stericsson.com, alsa-devel@alsa-project.org, lrg@ti.com, Lee Jones Subject: [PATCH 02/21] MFD: db8500-prcmu: Ensure AB8500 platform data is passed through MFD Core Date: Thu, 26 Jul 2012 11:28:35 +0100 Message-Id: <1343298534-13611-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1343298534-13611-1-git-send-email-lee.jones@linaro.org> References: <1343298534-13611-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkJLh+YFo2v7EGdtMU/LJs9PbU9Bs7lRNLJu2hJ+vQmQV/QzlrDpu6FUoHj+Ox3eSFrMNmD 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); } }