Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPSTREAM: spi: mediatek: fix wrong error return value on probe
Commit adcbcfe ("spi: mediatek: fix spi clock usage error") added a new sel_clk but introduced bugs in the error paths since the wrong struct clk pointers are passed to PTR_ERR(). Fixes: adcbcfe ("spi: mediatek: fix spi clock usage error") Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Mark Brown <broonie@kernel.org> (cherry picked from commit e26d15f) Signed-off-by: Leilk Liu <leilk.liu@mediatek.com> BUG=chrome-os-partner:40544 TEST=build and boot oak-rev3 Change-Id: Ie03c78766c84ce8b2d91e85fd44a6ac0f0cde9a0 Reviewed-on: https://chromium-review.googlesource.com/305890 Commit-Ready: Daniel Kurtz <djkurtz@chromium.org> Tested-by: Daniel Kurtz <djkurtz@chromium.org> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
- Loading branch information