regulator: lp87565: Fix probe failure for "ti,lp87565"
authorAxel Lin <axel.lin@ingics.com>
Thu, 11 Jul 2019 11:35:17 +0000 (19:35 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 24 Jul 2019 16:03:34 +0000 (17:03 +0100)
commita853c0a0b013af3fee0f028cff3c44e275ce9abd
tree329e1760c96a88bbc204ac72c93ada3a922ca04f
parent27988c96687667e74df1a9a3b8662519bc1c29c9
regulator: lp87565: Fix probe failure for "ti,lp87565"

The "ti,lp87565" compatible string is still in of_lp87565_match_table,
but current code will return -EINVAL because lp87565->dev_type is unknown.
This was working in earlier kernel versions, so fix it.

Fixes: 7ee63bd74750 ("regulator: lp87565: Add 4-phase lp87561 regulator support")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20190711113517.26077-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lp87565-regulator.c