浏览代码

drm: malidp: Remove event_list member from struct malidp_drm

This struct member managed to outlive the submission process without
being removed. It is useless.

Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Liviu Dudau 8 年之前
父节点
当前提交
cf4c887084
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 0 2
      drivers/gpu/drm/arm/malidp_drv.c
  2. 1 1
      drivers/gpu/drm/arm/malidp_drv.h

+ 0 - 2
drivers/gpu/drm/arm/malidp_drv.c

@@ -22,7 +22,6 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_crtc_helper.h>
 #include <drm/drm_crtc_helper.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_fb_cma_helper.h>
 #include <drm/drm_fb_cma_helper.h>
 #include <drm/drm_gem_cma_helper.h>
 #include <drm/drm_gem_cma_helper.h>
 #include <drm/drm_of.h>
 #include <drm/drm_of.h>
@@ -286,7 +285,6 @@ static int malidp_bind(struct device *dev)
 	memcpy(hwdev, of_device_get_match_data(dev), sizeof(*hwdev));
 	memcpy(hwdev, of_device_get_match_data(dev), sizeof(*hwdev));
 	malidp->dev = hwdev;
 	malidp->dev = hwdev;
 
 
-	INIT_LIST_HEAD(&malidp->event_list);
 
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	hwdev->regs = devm_ioremap_resource(dev, res);
 	hwdev->regs = devm_ioremap_resource(dev, res);

+ 1 - 1
drivers/gpu/drm/arm/malidp_drv.h

@@ -15,12 +15,12 @@
 
 
 #include <linux/mutex.h>
 #include <linux/mutex.h>
 #include <linux/wait.h>
 #include <linux/wait.h>
+#include <drm/drmP.h>
 #include "malidp_hw.h"
 #include "malidp_hw.h"
 
 
 struct malidp_drm {
 struct malidp_drm {
 	struct malidp_hw_device *dev;
 	struct malidp_hw_device *dev;
 	struct drm_fbdev_cma *fbdev;
 	struct drm_fbdev_cma *fbdev;
-	struct list_head event_list;
 	struct drm_crtc crtc;
 	struct drm_crtc crtc;
 	wait_queue_head_t wq;
 	wait_queue_head_t wq;
 	atomic_t config_valid;
 	atomic_t config_valid;