Skip to contentSkip to conversation

drm/omap: remove global drm_device ptr

PATCH New Rob Clark 1 participant 1 message Oct 29, 2012 Staging

lore
Share & tools
lore

Rob Clark

author
#0 lore raw

PATCH 1/1 drm/omap: remove global drm_device ptr

From: Rob Clark <[email protected]>

Not actually used anymore.

---
 drivers/staging/omapdrm/omap_drv.c |    4 ----
 1 file changed, 4 deletions(-)
drivers/staging/omapdrm/omap_drv.c +0 -4
index a004b9f..c27d091 100644
@@ -31,8 +31,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");
@@ -423,8 +421,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");
Signature · 1 line
1.7.9.5