From patchwork Mon Oct 29 08:27:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 1662451 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id EB14BDFB7A for ; Mon, 29 Oct 2012 09:13:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E55499E9C2 for ; Mon, 29 Oct 2012 02:13:36 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-bk0-f49.google.com (mail-bk0-f49.google.com [209.85.214.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 5710D9E8FB for ; Mon, 29 Oct 2012 01:27:55 -0700 (PDT) Received: by mail-bk0-f49.google.com with SMTP id j4so1568376bkw.36 for ; Mon, 29 Oct 2012 01:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=Fo3fLvLZ0ZyqUXkTTspIXkPPuBaD+2dHre2MVaTEAyU=; b=XznOgJL2BNm5Gx3kg577yM++aFN4aRSWRBQsOSfciX6VIzHlxCi47BoWSwZ6Oz2eWL L4p/xHlh7+FkrPUmTnc3jBjCzD7DIeWqHlQo93POhld+rZPpMNflBTeis4f9Q+PIXQtE yTgNBihNpRBQjq+uj3oWuml05oRdtiGhrm5WkePx+bipx7nkCuh1vrJ2UmEARU3AeP4h iaDZd8Hy34ebmH3xXObe30f2iCbwqVDMNxd/fmYP0uLm65EA5jIi74h5ZEgX12YwXHQj /N8J1jLyRXRbvEsUHUtYUWhEHi6srtjYkgkGi/K+kHa46loTEhrt9Q40WkWTUK2f1byQ 8DYw== Received: by 10.205.118.136 with SMTP id fq8mr8787128bkc.24.1351499273978; Mon, 29 Oct 2012 01:27:53 -0700 (PDT) Received: from localhost ([91.224.175.20]) by mx.google.com with ESMTPS id gy18sm3180519bkc.4.2012.10.29.01.27.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Oct 2012 01:27:53 -0700 (PDT) From: Rob Clark To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/omap: remove global drm_device ptr Date: Mon, 29 Oct 2012 09:27:50 +0100 Message-Id: <1351499270-5752-1-git-send-email-rob.clark@linaro.org> X-Mailer: git-send-email 1.7.9.5 Cc: Greg KH , Tomi Valkeinen , Rob Clark , patches@linaro.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org From: Rob Clark Not actually used anymore. Signed-off-by: Rob Clark --- drivers/staging/omapdrm/omap_drv.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/staging/omapdrm/omap_drv.c b/drivers/staging/omapdrm/omap_drv.c index a004b9f..c27d091 100644 --- a/drivers/staging/omapdrm/omap_drv.c +++ b/drivers/staging/omapdrm/omap_drv.c @@ -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");