MLK-16301-2 gpu: imx: dpu: common: Remove the list in dpu plane group
authorLiu Ying <victor.liu@nxp.com>
Wed, 30 Aug 2017 03:59:03 +0000 (11:59 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:23 +0000 (15:38 -0500)
No one is using the list in the dpu plane group, so let's remove it and
the mutex lock which protects the list.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
drivers/gpu/imx/dpu/dpu-common.c
include/video/dpu.h

index 15f14ef..30aff1d 100644 (file)
@@ -970,8 +970,6 @@ static int dpu_add_client_devices(struct dpu_soc *dpu)
        else
                memcpy(reg, &client_reg[2], reg_size);
 
-       INIT_LIST_HEAD(&plane_grp->list);
-       mutex_init(&plane_grp->lock);
        plane_grp->id = id / client_num;
        plane_grp->has_vproc = display_plane_video_proc;
 
index bd2582e..e208ced 100644 (file)
@@ -671,8 +671,6 @@ struct dpu_plane_res {
  */
 struct dpu_plane_grp {
        struct dpu_plane_res    res;
-       struct list_head        list;
-       struct mutex            lock;
        unsigned int            hw_plane_num;
        unsigned int            hw_plane_fetcheco_num;
        unsigned int            hw_plane_hscaler_num;