From patchwork Wed Jan 29 13:39:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 3551151 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C158B9F2E9 for ; Wed, 29 Jan 2014 13:39:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF10920170 for ; Wed, 29 Jan 2014 13:39:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 26AE6200DC for ; Wed, 29 Jan 2014 13:39:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B8E2FD0CD; Wed, 29 Jan 2014 05:39:48 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by gabe.freedesktop.org (Postfix) with ESMTP id B197FFD0CD for ; Wed, 29 Jan 2014 05:39:45 -0800 (PST) Received: by mail-ee0-f49.google.com with SMTP id d17so899939eek.8 for ; Wed, 29 Jan 2014 05:39:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=+3M8mOd0r9TL1rSLe3STPO3GIUpQ+QQyy76YeyY22KQ=; b=ZSFSI0XV+KrddTOlPRX2leQHFqwCZZcqxWrfTkMZfTTdBnCog50Sp5HcfWDo2flHZy m8Y11MeP0Yzj0B6ipjhflrLC6+fEhO9e21X0j+JBTn1OGPDabWWoho1a9A2q1OzBC2zd oxeT3XXx/TDuzKwzNYkzbvcu8zDiBUuHIivX9noWetIo6ANowWueCgGeH/1R7R4MYJqv IfhkmkoWa9FMYXR+Kq4zUElAIqumIEW/422qVbB9EXR+6JVF9m7jzYj64lmk7rjHK8Sj MBDZTTr8KVdkON9lqJaR8PzaZ0NE8thiG3IYvgcvpeKSwK3M98IOGUFz8Gb6lq5zApjq J4zw== X-Received: by 10.14.216.3 with SMTP id f3mr3228784eep.66.1391002784672; Wed, 29 Jan 2014 05:39:44 -0800 (PST) Received: from david-ub.localdomain (stgt-5f71657e.pool.mediaWays.net. [95.113.101.126]) by mx.google.com with ESMTPSA id o43sm8829901eef.12.2014.01.29.05.39.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jan 2014 05:39:43 -0800 (PST) From: David Herrmann To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/gma500: remove stub .open/postclose Date: Wed, 29 Jan 2014 14:39:34 +0100 Message-Id: <1391002774-582-1-git-send-email-dh.herrmann@gmail.com> X-Mailer: git-send-email 1.8.5.3 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@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These are unused and can safely be dropped. DRM core verifies they're non-NULL before it calls them. Cc: Patrik Jakobsson Signed-off-by: David Herrmann Reviewed-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_drv.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 1199180..d224503 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c @@ -588,15 +588,6 @@ static int psb_stolen_memory_ioctl(struct drm_device *dev, void *data, return 0; } -static int psb_driver_open(struct drm_device *dev, struct drm_file *priv) -{ - return 0; -} - -static void psb_driver_close(struct drm_device *dev, struct drm_file *priv) -{ -} - static long psb_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) { @@ -672,9 +663,7 @@ static struct drm_driver driver = { .disable_vblank = psb_disable_vblank, .get_vblank_counter = psb_get_vblank_counter, .lastclose = psb_lastclose, - .open = psb_driver_open, .preclose = psb_driver_preclose, - .postclose = psb_driver_close, .gem_free_object = psb_gem_free_object, .gem_vm_ops = &psb_gem_vm_ops,