From: fabio.baltieri@linaro.org (Fabio Baltieri)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/5] mfd: ab8500-sysctrl: set sysctrl_dev during probe
Date: Fri, 26 Apr 2013 14:17:17 +0200 [thread overview]
Message-ID: <1366978638-967-5-git-send-email-fabio.baltieri@linaro.org> (raw)
In-Reply-To: <1366978638-967-1-git-send-email-fabio.baltieri@linaro.org>
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 <fabio.baltieri@linaro.org>
---
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;
--
1.8.1.3
next prev parent reply other threads:[~2013-04-26 12:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-26 12:17 [PATCH 0/5] various ab8500 fixes Fabio Baltieri
2013-04-26 12:17 ` [PATCH 1/5] mfd: abx500-core: fix sparse warning Fabio Baltieri
2013-04-26 12:17 ` [PATCH 2/5] mfd: ab8500-sysctrl: " Fabio Baltieri
2013-04-26 12:17 ` [PATCH 3/5] mfd: ab8500: drop references to ab8500-leds Fabio Baltieri
2013-04-26 12:17 ` Fabio Baltieri [this message]
2013-04-26 12:17 ` [PATCH 5/5] mfd: ab8500-sysctrl: let sysctrl driver work without pdata Fabio Baltieri
2013-05-02 12:34 ` [PATCH 0/5] various ab8500 fixes Linus Walleij
2013-05-03 8:01 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1366978638-967-5-git-send-email-fabio.baltieri@linaro.org \
--to=fabio.baltieri@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).