drm fb helper: remove unused variable crtc_id
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 1 Feb 2012 10:38:26 +0000 (11:38 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 3 Feb 2012 09:55:52 +0000 (09:55 +0000)
crtc_id is set but never used, so remove it from struct
drm_fb_helper_crtc.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_fb_helper.h

index 7b37874741f111897c68e3b4dade09ce1181dc1e..7740dd26f00706d3b2059f475d10399f8f66d068 100644 (file)
@@ -417,7 +417,6 @@ int drm_fb_helper_init(struct drm_device *dev,
 
        i = 0;
        list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
-               fb_helper->crtc_info[i].crtc_id = crtc->base.id;
                fb_helper->crtc_info[i].mode_set.crtc = crtc;
                i++;
        }
index 55e10d62eab051d7d74b07e56f67590b77d1330b..5120b01c2eebb86809729ec8945bc8bf68f62b97 100644 (file)
@@ -35,7 +35,6 @@ struct drm_fb_helper;
 #include <linux/kgdb.h>
 
 struct drm_fb_helper_crtc {
-       uint32_t crtc_id;
        struct drm_mode_set mode_set;
        struct drm_display_mode *desired_mode;
 };