]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: ab8500-sysctrl: Handle probe deferral
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 13 Jan 2017 09:53:55 +0000 (10:53 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 13 Feb 2017 09:29:43 +0000 (09:29 +0000)
commit650c624dff35d2fe22f95f8a8bbc22c4e96a154a
tree0ef088b8bcc08a554810e85d24acacd4a107bd20
parent1e9d73b4d144db15fa5c648f28e9877e3fd89112
mfd: ab8500-sysctrl: Handle probe deferral

In the current boot, clients making use of the AB8500 sysctrl
may be probed before the ab8500-sysctrl driver. This gives them
-EINVAL, but should rather give -EPROBE_DEFER.

Before this, the abx500 clock driver didn't probe properly,
and as a result the codec driver in turn using the clocks did
not probe properly. After this patch, everything probes
properly.

Also add OF compatible-string probing. This driver is all
device tree, so let's just make a drive-by-fix of that as
well.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ab8500-sysctrl.c