Skip to content

Commit

Permalink
staging: drm/omap: remove global drm_device ptr
Browse files Browse the repository at this point in the history
Not actually used anymore.

Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Rob Clark authored and Greg Kroah-Hartman committed Oct 30, 2012
1 parent e6c5abf commit f68f5f2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/omapdrm/omap_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit f68f5f2

Please sign in to comment.