From patchwork Fri Apr 26 12:17:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 16425 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A2A122397A for ; Fri, 26 Apr 2013 12:19:09 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id b41sf7088228yha.9 for ; Fri, 26 Apr 2013 05:18:14 -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=v7QuTB1RsDEWizK6sdJHgj8aDwps9D2GhyDVCX7sqXs=; b=oyyPIUY6ADWbeW26enJ7cpYZ7I4uHpZQR6F10tZZcMPnZ/eDuIO2D3x8P3vqMM2n+L 0hIy4jvD4aAJ5stdb9G6vZ7Ue/fr9PulDBcAuMDi73n2sKNI02aOftIGN8nMEFexkLM8 dyYOsmzAkexuUGmderKm1Bth5Mvvmv8f/yOpSGryu35f99u3hcEsNQc6tnAQeVjvhTYv VVjqqz3QANGWVMmWz6teoB0nwbW+9fjq0LFtl+EZD/LcaQA2n6/xQJ8qvxVPpBhUS/Jv rixbPIqasDgDSGmZ6dZoorSGa7TadmA/rpw1XlV5rMf3NdTzV1ZVQMjThhsq4vhsFKA5 DwgQ== X-Received: by 10.58.202.41 with SMTP id kf9mr1446662vec.11.1366978694013; Fri, 26 Apr 2013 05:18:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.30.68 with SMTP id q4ls1621977qeh.8.gmail; Fri, 26 Apr 2013 05:18:13 -0700 (PDT) X-Received: by 10.58.1.197 with SMTP id 5mr28503078veo.4.1366978693784; Fri, 26 Apr 2013 05:18:13 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id m4si5251064vcg.67.2013.04.26.05.18.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Apr 2013 05:18:13 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id hx10so3733018vcb.31 for ; Fri, 26 Apr 2013 05:18:13 -0700 (PDT) X-Received: by 10.220.169.78 with SMTP id x14mr13936917vcy.41.1366978693540; Fri, 26 Apr 2013 05:18:13 -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 nf2csp66042veb; Fri, 26 Apr 2013 05:18:13 -0700 (PDT) X-Received: by 10.205.32.140 with SMTP id sk12mr17988395bkb.75.1366978692520; Fri, 26 Apr 2013 05:18:12 -0700 (PDT) Received: from mail-bk0-x235.google.com (mail-bk0-x235.google.com [2a00:1450:4008:c01::235]) by mx.google.com with ESMTPS id uj7si3847395bkb.50.2013.04.26.05.18.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Apr 2013 05:18:12 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:4008:c01::235 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) client-ip=2a00:1450:4008:c01::235; Received: by mail-bk0-f53.google.com with SMTP id jg9so1756003bkc.12 for ; Fri, 26 Apr 2013 05:18:12 -0700 (PDT) X-Received: by 10.204.229.140 with SMTP id ji12mr18299488bkb.113.1366978691919; Fri, 26 Apr 2013 05:18:11 -0700 (PDT) Received: from localhost ([2a01:2003:1:1f50:8e70:5aff:feac:ad8]) by mx.google.com with ESMTPSA id m11sm3145333bkz.0.2013.04.26.05.18.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 26 Apr 2013 05:18:11 -0700 (PDT) From: Fabio Baltieri To: Samuel Ortiz Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , Linus Walleij , Srinidhi Kasagar , Fabio Baltieri Subject: [PATCH 4/5] mfd: ab8500-sysctrl: set sysctrl_dev during probe Date: Fri, 26 Apr 2013 14:17:17 +0200 Message-Id: <1366978638-967-5-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.8.1.3 In-Reply-To: <1366978638-967-1-git-send-email-fabio.baltieri@linaro.org> References: <1366978638-967-1-git-send-email-fabio.baltieri@linaro.org> X-Gm-Message-State: ALoCoQmZMBvu0FZzW0h/oVrBtg7sdV6WmUflvjIi+8T0yrS/9klALFIk5WSRFuu1yTa40wgSwFRT X-Original-Sender: fabio.baltieri@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 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: , The driver requires sysctrl_dev to be set at probe, as it's used by other driver functions. This was dropped by mistake in: 2377e52 mfd: ab8500-sysctrl: Error check clean up making all driver functions fail. Signed-off-by: Fabio Baltieri --- drivers/mfd/ab8500-sysctrl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/ab8500-sysctrl.c b/drivers/mfd/ab8500-sysctrl.c index 640495e..b851692 100644 --- a/drivers/mfd/ab8500-sysctrl.c +++ b/drivers/mfd/ab8500-sysctrl.c @@ -191,6 +191,8 @@ static int ab8500_sysctrl_probe(struct platform_device *pdev) if (!(plat && plat->sysctrl)) return -EINVAL; + sysctrl_dev = &pdev->dev; + if (plat->pm_power_off) pm_power_off = ab8500_power_off;