projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6204736
)
exynos4-dt: check pointer returned by pmic_get()
accepted/tizen/common/20141210.130049
accepted/tizen/tv/20141210.193503
accepted/tizen/wearable/20141210.201149
submit/tizen/20141210.090340
author
Przemyslaw Marczak
<p.marczak@samsung.com>
Fri, 28 Nov 2014 13:37:35 +0000
(14:37 +0100)
committer
Chanho Park
<chanho61.park@samsung.com>
Wed, 10 Dec 2014 09:02:33 +0000
(18:02 +0900)
Change-Id: I327ba399d83cc1eebdfdf9a7b239579d760c1c57
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
board/samsung/common/exynos4-dt.c
patch
|
blob
|
history
diff --git
a/board/samsung/common/exynos4-dt.c
b/board/samsung/common/exynos4-dt.c
index
8376998
..
b0ba189
100644
(file)
--- a/
board/samsung/common/exynos4-dt.c
+++ b/
board/samsung/common/exynos4-dt.c
@@
-578,6
+578,9
@@
static int pmic_init_max77686(void)
{
struct pmic *p = pmic_get("MAX77686_PMIC");
+ if (!p)
+ return -ENODEV;
+
if (pmic_probe(p))
return -ENODEV;
@@
-820,6
+823,8
@@
int mipi_power(void)
return 0;
p = pmic_get("MAX77686_PMIC");
+ if (!p)
+ return -ENODEV;
/* LDO8 VMIPI_1.0V_AP */
max77686_set_ldo_mode(p, 8, OPMODE_ON);
@@
-837,6
+842,8
@@
void exynos_lcd_power_on(void)
return;
p = pmic_get("MAX77686_PMIC");
+ if (!p)
+ return;
/* LCD_2.2V_EN: GPC0[1] */
gpio_set_pull(EXYNOS4X12_GPIO_C01, S5P_GPIO_PULL_UP);