diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-02-26 06:48:08 +0300 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2015-03-04 16:01:48 +0300 |
commit | cfd565d1e102941ec61b2a33c3c474961300a6fb (patch) | |
tree | 8e5a3f9cf2bacf55f5afe6aa1a222c597aabe284 /drivers/phy | |
parent | 235b633eb513f8471b9f23635345ede6e49371ab (diff) | |
download | linux-cfd565d1e102941ec61b2a33c3c474961300a6fb.tar.xz |
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>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/phy-exynos-mipi-video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-exynos-mipi-video.c b/drivers/phy/phy-exynos-mipi-video.c index f017b2f2a54e..d19649328d05 100644 --- a/drivers/phy/phy-exynos-mipi-video.c +++ b/drivers/phy/phy-exynos-mipi-video.c @@ -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) |