Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfd565d1 authored by Axel Lin's avatar Axel Lin Committed by Kishon Vijay Abraham I
Browse files

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: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent 235b633e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)