Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Axel Lin and committed by
Kishon Vijay Abraham I
cfd565d1 235b633e

+1 -1
+1 -1
drivers/phy/phy-exynos-mipi-video.c
··· 59 59 else 60 60 reset = EXYNOS4_MIPI_PHY_SRESETN; 61 61 62 - if (state->regmap) { 62 + if (!IS_ERR(state->regmap)) { 63 63 mutex_lock(&state->mutex); 64 64 regmap_read(state->regmap, offset, &val); 65 65 if (on)