staging: drm/omap: remove global drm_device ptr
Not actually used anymore. Signed-off-by: Rob Clark <rob@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e6c5abf254
commit
f68f5f2067
@@ -30,8 +30,6 @@
|
|||||||
#define DRIVER_MINOR 0
|
#define DRIVER_MINOR 0
|
||||||
#define DRIVER_PATCHLEVEL 0
|
#define DRIVER_PATCHLEVEL 0
|
||||||
|
|
||||||
struct drm_device *drm_device;
|
|
||||||
|
|
||||||
static int num_crtc = CONFIG_DRM_OMAP_NUM_CRTCS;
|
static int num_crtc = CONFIG_DRM_OMAP_NUM_CRTCS;
|
||||||
|
|
||||||
MODULE_PARM_DESC(num_crtc, "Number of overlays to use as 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);
|
DBG("load: dev=%p", dev);
|
||||||
|
|
||||||
drm_device = dev;
|
|
||||||
|
|
||||||
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
|
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
|
||||||
if (!priv) {
|
if (!priv) {
|
||||||
dev_err(dev->dev, "could not allocate priv\n");
|
dev_err(dev->dev, "could not allocate priv\n");
|
||||||
|
Reference in New Issue
Block a user