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: 1249411 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 3E5413FD48 for ; Fri, 27 Jul 2012 12:48:56 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sujtd-0001bl-6w; Fri, 27 Jul 2012 12:43:57 +0000 Received: from mail-wg0-f49.google.com ([74.125.82.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Sujpu-0001Ee-RP for linux-arm-kernel@lists.infradead.org; Fri, 27 Jul 2012 12:40:07 +0000 Received: by wgbez12 with SMTP id ez12so2023770wgb.18 for ; Fri, 27 Jul 2012 05:39:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=SdI7LZdalMOBvBLhl4ZCga59cTt64atmk5G88xZB4uI=; b=M8TBpJVkPUEhXDpHz8Nu9erGkA8eSI4j3oye/7s4tE3XBukrcCUcxP2YBOavG+Bjva xhIheTTaojktf9YlaXBUXd/dpQdqqh7XVzgXdJLofQ23o6B4aJmUG6mNdeyG2BWLJYLC NO+BVtO5O8Q/oSBMXdaeMQN2dxYeXhcFQJFMCfOAVMoIQ+GyWgrrKEmRQAbTJQcE04kh CpqbpuJUwXCQNqRnuIU1zSU/ZKl/1UpugrLMQLR3/A3U9eYOj35iweRKv2cX1m4bE0JW Q+cJ4wzJG8ud881lH8vPkQNDb8Xm+Eh4wO3yA8y7qGaiarSc/NLjaKr7aeKXWx9C3v3I SLWQ== 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 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: ALoCoQmFjAvAoDJVbFal6AfN7QgfwVGDHC62G1D6IEescCAlR88abDEgSH5ignGLCKL/AmgIphJh X-Spam-Note: CRM114 invocation failed X-Spam-Note: SpamAssassin invocation failed Cc: ola.o.lilja@stericsson.com, alsa-devel@alsa-project.org, sameo@linux.intel.com, arnd@arndb.de, broonie@opensource.wolfsonmicro.com, olalilja@yahoo.se, STEricsson_nomadik_linux@list.st.com, Lee Jones , lrg@ti.com, linus.walleij@stericsson.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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); } }