summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
Diffstat (limited to 'board')
-rw-r--r--board/st/u8500/mcde_display.c2
-rw-r--r--board/st/u8500/mcde_hw.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/board/st/u8500/mcde_display.c b/board/st/u8500/mcde_display.c
index f3aa24bb9..70d1cb9b0 100644
--- a/board/st/u8500/mcde_display.c
+++ b/board/st/u8500/mcde_display.c
@@ -311,6 +311,8 @@ int mcde_startup(void)
mcde_chnl_set_pixel_format(chnl, main_display.port_pixel_format);
mcde_chnl_apply(chnl);
+ return ret;
+
display_power_mode_failed:
get_chnl_failed:
display_power_failed:
diff --git a/board/st/u8500/mcde_hw.c b/board/st/u8500/mcde_hw.c
index a858e67aa..ed85c5b79 100644
--- a/board/st/u8500/mcde_hw.c
+++ b/board/st/u8500/mcde_hw.c
@@ -874,6 +874,8 @@ int mcde_init(u8 num_data_lanes)
void mcde_exit(void)
{
- if (dsiio)
+ if (dsiio) {
free(dsiio);
+ dsiio = NULL;
+ }
}