提交 9f7af61a 编写于 作者: F Fabio Baltieri 提交者: 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: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NFabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 3d2088a1
...@@ -191,6 +191,8 @@ static int ab8500_sysctrl_probe(struct platform_device *pdev) ...@@ -191,6 +191,8 @@ static int ab8500_sysctrl_probe(struct platform_device *pdev)
if (!(plat && plat->sysctrl)) if (!(plat && plat->sysctrl))
return -EINVAL; return -EINVAL;
sysctrl_dev = &pdev->dev;
if (plat->pm_power_off) if (plat->pm_power_off)
pm_power_off = ab8500_power_off; pm_power_off = ab8500_power_off;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册