diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-02-25 22:48:08 -0500 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2015-03-04 08:01:48 -0500 |
commit | cfd565d1e102941ec61b2a33c3c474961300a6fb (patch) | |
tree | 8e5a3f9cf2bacf55f5afe6aa1a222c597aabe284 /drivers/phy | |
parent | 235b633eb513f8471b9f23635345ede6e49371ab (diff) |
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, | |||
59 | else | 59 | else |
60 | reset = EXYNOS4_MIPI_PHY_SRESETN; | 60 | reset = EXYNOS4_MIPI_PHY_SRESETN; |
61 | 61 | ||
62 | if (state->regmap) { | 62 | if (!IS_ERR(state->regmap)) { |
63 | mutex_lock(&state->mutex); | 63 | mutex_lock(&state->mutex); |
64 | regmap_read(state->regmap, offset, &val); | 64 | regmap_read(state->regmap, offset, &val); |
65 | if (on) | 65 | if (on) |