projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
universal_c210: check the NULL pointer when get the PMIC
[platform/kernel/u-boot.git]
/
board
/
samsung
/
universal_c210
/
universal.c
diff --git
a/board/samsung/universal_c210/universal.c
b/board/samsung/universal_c210/universal.c
index
4869798
..
e742707
100644
(file)
--- a/
board/samsung/universal_c210/universal.c
+++ b/
board/samsung/universal_c210/universal.c
@@
-343,6
+343,9
@@
static void init_pmic_lcd(void)
struct pmic *p = pmic_get("MAX8998_PMIC");
+ if (!p)
+ return;
+
if (pmic_probe(p))
return;
@@
-434,6
+437,9
@@
static void lcd_power_on(void)
{
struct pmic *p = pmic_get("MAX8998_PMIC");
+ if (!p)
+ return;
+
if (pmic_probe(p))
return;