OSDN Git Service

mfd: da9052: Fix broken regulator probe
authorJohan Hovold <johan@kernel.org>
Fri, 15 May 2015 14:27:40 +0000 (16:27 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 27 May 2015 12:34:15 +0000 (13:34 +0100)
commite0c21530fa91f119bfca19640a67380c6b14f12a
treed1579ae40cb4589126d6e8cc91486137bef5ec8f
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22
mfd: da9052: Fix broken regulator probe

Fix broken probe of da9052 regulators, which since commit b3f6c73db732
("mfd: da9052-core: Fix platform-device id collision") use a
non-deterministic platform-device id to retrieve static regulator
information. Fortunately, adequate error handling was in place so probe
would simply fail with an error message.

Update the mfd-cell ids to be zero-based and use those to identify the
cells when probing the regulator devices.

Fixes: b3f6c73db732 ("mfd: da9052-core: Fix platform-device id collision")
Cc: stable <stable@vger.kernel.org> # v3.19
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/da9052-core.c
drivers/regulator/da9052-regulator.c