Commit 9f7af61a authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Samuel Ortiz

mfd: ab8500-sysctrl: Set sysctrl_dev during probe

The driver requires sysctrl_dev to be set at probe, as it's used by
other driver functions.  This was dropped by mistake in:

2377e52f mfd: ab8500-sysctrl: Error check clean up

making all driver functions fail.
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarFabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 3d2088a1
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment