projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
235b633
)
phy: exynos-mipi-video: Fixup the test for state->regmap
author
Axel Lin
<axel.lin@ingics.com>
Thu, 26 Feb 2015 03:48:08 +0000
(11:48 +0800)
committer
Kishon Vijay Abraham I
<kishon@ti.com>
Wed, 4 Mar 2015 13:01:48 +0000
(18:31 +0530)
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>
drivers/phy/phy-exynos-mipi-video.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/phy/phy-exynos-mipi-video.c
b/drivers/phy/phy-exynos-mipi-video.c
index f017b2f2a54ecb18c8aa7b0fed3c375f790e48d4..d19649328d05757aa1830cb11681b4d1147a2119 100644
(file)
--- 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)