|
@@ -2783,6 +2783,8 @@ int dispc_wb_setup(struct dispc_device *dispc,
|
|
wi->height, wi->fourcc, wi->rotation, zorder,
|
|
wi->height, wi->fourcc, wi->rotation, zorder,
|
|
wi->pre_mult_alpha, global_alpha, wi->rotation_type,
|
|
wi->pre_mult_alpha, global_alpha, wi->rotation_type,
|
|
replication, vm, mem_to_mem);
|
|
replication, vm, mem_to_mem);
|
|
|
|
+ if (r)
|
|
|
|
+ return r;
|
|
|
|
|
|
switch (wi->fourcc) {
|
|
switch (wi->fourcc) {
|
|
case DRM_FORMAT_RGB565:
|
|
case DRM_FORMAT_RGB565:
|
|
@@ -2823,7 +2825,7 @@ int dispc_wb_setup(struct dispc_device *dispc,
|
|
REG_FLD_MOD(dispc, DISPC_OVL_ATTRIBUTES2(plane), wbdelay, 7, 0);
|
|
REG_FLD_MOD(dispc, DISPC_OVL_ATTRIBUTES2(plane), wbdelay, 7, 0);
|
|
}
|
|
}
|
|
|
|
|
|
- return r;
|
|
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
|
|
static int dispc_ovl_enable(struct dispc_device *dispc,
|
|
static int dispc_ovl_enable(struct dispc_device *dispc,
|