phy: exynos-mipi-video: Fixup the test for state->regmap
Subsystems (2)
PATCH 1/1 phy: exynos-mipi-video: Fixup the test for state->regmap
syscon_regmap_lookup_by_phandle() returns ERR_PTR on error. Thus don't use null test against state->regmap.
Signed-off-by Axel Lin <[email protected]>
--- drivers/phy/phy-exynos-mipi-video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/phy-exynos-mipi-video.c +1 -1
@@ -59,7 +59,7 @@ static int __set_phy_state(struct exynos_mipi_video_phy *state,else reset =EXYNOS4_MIPI_PHY_SRESETN ; -if (state->regmap) { +if (!IS_ERR (state->regmap)) {mutex_lock (&state->mutex);regmap_read (state->regmap, offset, &val);if (on)
Signature · 1 line
1.9.1
Quoted 4 lines · Axel Lin
syscon_regmap_lookup_by_phandle()returnsERR_PTRon error. Thus don't use null test againststate->regmap.Signed-off-by Axel Lin <[email protected]>
Thanks for the patch, I had this on my todo list.