summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e880a5e)
Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
- if (0 == gd->fb_base) {
+ if (gd->fb_base == 0) {
printf("ERROR: no valid fb_base stored in GLOBAL_DATA_PTR!\n");
return -1;
}
printf("ERROR: no valid fb_base stored in GLOBAL_DATA_PTR!\n");
return -1;
}
printf("ERROR: missing ptr to am335x_lcdpanel!\n");
return -1;
}
printf("ERROR: missing ptr to am335x_lcdpanel!\n");
return -1;
}
gd->fb_base += 0x20;
/* turn ON display through powercontrol function if accessible */
gd->fb_base += 0x20;
/* turn ON display through powercontrol function if accessible */
- if (0 != panel->panel_power_ctrl)
+ if (panel->panel_power_ctrl != NULL)
panel->panel_power_ctrl(1);
debug("am335x-fb: wait for stable power ...\n");
panel->panel_power_ctrl(1);
debug("am335x-fb: wait for stable power ...\n");