mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-31 22:15:38 +00:00
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:
2377e52
mfd: ab8500-sysctrl: Error check clean up
making all driver functions fail.
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
3d2088a14d
commit
9f7af61a93
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user