From patchwork Thu Aug 8 13:41:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 2841233 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 BFAC49F295 for ; Thu, 8 Aug 2013 14:16:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DC67820557 for ; Thu, 8 Aug 2013 14:16:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 257512054E for ; Thu, 8 Aug 2013 14:16:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B43CCE661E for ; Thu, 8 Aug 2013 07:16:45 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by gabe.freedesktop.org (Postfix) with ESMTP id 0B9DDE6860 for ; Thu, 8 Aug 2013 06:41:56 -0700 (PDT) Received: by mail-ee0-f54.google.com with SMTP id e53so1530265eek.27 for ; Thu, 08 Aug 2013 06:41:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Cj+ILproIsqdNqTQCdxsYZTdAufDRmq1m1jtuV4f/eg=; b=jn3bhleWeoCHn+wyePICivFZxZDkuu7KZCKwkQnIlS60tm3yuZBKq1p4gzMsc3iZI0 V/8NG5cx3YcyVe309JvzQpKEKAQrDDyGzBq7wyhwhqWD/j+bpnCXfZ1OBrZ+n22D5DFU p0c6haeIaOJkICAe/LrdRbhiDyISeQX4PRmUA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Cj+ILproIsqdNqTQCdxsYZTdAufDRmq1m1jtuV4f/eg=; b=fP2CJc2ZyFLHu2JCiu/jiNhD72s/4KJi9ND/AmH5VnZSxVLlkLvwOpOvzDnWQqTTRx UxcaRByA8izsTiqvgk0qUwG+StBCy6r6fOl0MEmgfza2rywxUr2qYYrm10nrBeJpcny6 ZXwXBJJ22xy6q7hlt36GOA/iQ82O3FbUOoxMOMPmle9bJcp4sCNZTXP9Oc3hHBINaMEB YZcJPuu3b3KeO+BWlGZGkIsznf15PlnYRZlyNiRjE9WvJTqDLdrl6YVPn2cZOctwOhhk /4SIRcICLrjxbhjfewPQjb+czKLJKJdIuls9OusZrdXJ0iYgEUueEcKBFPhWtf5BMYTv nsbw== X-Gm-Message-State: ALoCoQkWr4+nx8BRyRMzVwhJ9s9O4KImkTusEps7dXPCl+W2XKITS6FsFt3nhiKDiyAIoTua1SOc X-Received: by 10.14.1.5 with SMTP id 5mr8188037eec.96.1375969316221; Thu, 08 Aug 2013 06:41:56 -0700 (PDT) Received: from phenom.ffwll.local (178-83-130-250.dynamic.hispeed.ch. [178.83.130.250]) by mx.google.com with ESMTPSA id bn13sm19282226eeb.11.2013.08.08.06.41.54 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:41:55 -0700 (PDT) From: Daniel Vetter To: DRI Development Subject: [PATCH 15/25] drm: rip out a few unused DRIVER flags Date: Thu, 8 Aug 2013 15:41:25 +0200 Message-Id: <1375969295-18929-16-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1375969295-18929-1-git-send-email-daniel.vetter@ffwll.ch> References: <1375969295-18929-1-git-send-email-daniel.vetter@ffwll.ch> Cc: Daniel Vetter 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 X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, 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 The gma500 driver somehow set the DRIVER_IRQ_VBL flag, but since there's no code at all to check for this we can kill it. The other two are completely unused. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/gma500/psb_drv.c | 2 +- include/drm/drmP.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 99b5293..1383e75 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c @@ -627,7 +627,7 @@ static const struct file_operations psb_gem_fops = { static struct drm_driver driver = { .driver_features = DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | \ - DRIVER_IRQ_VBL | DRIVER_MODESET | DRIVER_GEM , + DRIVER_MODESET | DRIVER_GEM , .load = psb_driver_load, .unload = psb_driver_unload, diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 81de427..f526a7a9 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -147,9 +147,6 @@ int drm_err(const char *func, const char *format, ...); #define DRIVER_HAVE_DMA 0x20 #define DRIVER_HAVE_IRQ 0x40 #define DRIVER_IRQ_SHARED 0x80 -#define DRIVER_IRQ_VBL 0x100 -#define DRIVER_DMA_QUEUE 0x200 -#define DRIVER_IRQ_VBL2 0x800 #define DRIVER_GEM 0x1000 #define DRIVER_MODESET 0x2000 #define DRIVER_PRIME 0x4000