From: Rob Clark Date: Mon, 29 Oct 2012 08:27:50 +0000 (+0100) Subject: staging: drm/omap: remove global drm_device ptr X-Git-Tag: v3.8-rc1~178^2~787 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f68f5f20675a30197423cf79b42fd4f05b77af43;p=profile%2Fivi%2Fkernel-x86-ivi.git staging: drm/omap: remove global drm_device ptr Not actually used anymore. Signed-off-by: Rob Clark Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/omapdrm/omap_drv.c b/drivers/staging/omapdrm/omap_drv.c index 053c45d..09653b8 100644 --- a/drivers/staging/omapdrm/omap_drv.c +++ b/drivers/staging/omapdrm/omap_drv.c @@ -30,8 +30,6 @@ #define DRIVER_MINOR 0 #define DRIVER_PATCHLEVEL 0 -struct drm_device *drm_device; - static int num_crtc = CONFIG_DRM_OMAP_NUM_CRTCS; MODULE_PARM_DESC(num_crtc, "Number of overlays to use as CRTCs"); @@ -562,8 +560,6 @@ static int dev_load(struct drm_device *dev, unsigned long flags) DBG("load: dev=%p", dev); - drm_device = dev; - priv = kzalloc(sizeof(*priv), GFP_KERNEL); if (!priv) { dev_err(dev->dev, "could not allocate priv\n");