]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31135e3a23fe80d743a034810c9314a6a050ac93
tree329e1760c96a88bbc204ac72c93ada3a922ca04f
parent62861edd63ed151379584a1c91bdc4c40699b695
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: c935b4e9c694 ("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