]> asedeno.scripts.mit.edu Git - linux.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)
commit7e9c40c63933a643908d686bd89dfc2315e8c70a
tree0ef088b8bcc08a554810e85d24acacd4a107bd20
parentf80e78aa11ad754de20104233af1ce4cea8f16a5
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