From patchwork Fri Feb 5 21:57:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Haixia Shi X-Patchwork-Id: 8239881 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ED9A79F37A for ; Fri, 5 Feb 2016 21:57:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 29302203C1 for ; Fri, 5 Feb 2016 21:57:52 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 4E18C203B8 for ; Fri, 5 Feb 2016 21:57:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 507A46EAB6; Fri, 5 Feb 2016 13:57:50 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-f173.google.com (mail-pf0-f173.google.com [209.85.192.173]) by gabe.freedesktop.org (Postfix) with ESMTPS id 483D46EAB6 for ; Fri, 5 Feb 2016 13:57:48 -0800 (PST) Received: by mail-pf0-f173.google.com with SMTP id o185so75261039pfb.1 for ; Fri, 05 Feb 2016 13:57:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=FpypfTHcFYncSLdphl9JQjz9b2wzZiXluXhaOS3h408=; b=GSb4poVYx/RF2VPvzAN94MuIwsKQwKhLDNKmgqtvm5KOBhqbxkgkBDX+fvByxGleDu dFMfzcjm9erJnpIcMTJo22VDwN7A6mfcN0KECqTHBlnh+x+UqKsQ/zdRXa008TCu2adM Uqgq8fpItjavh92YtUo8vr4w8UTWt25asqsvQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=FpypfTHcFYncSLdphl9JQjz9b2wzZiXluXhaOS3h408=; b=KyZTzgWPmjIT1UOOF4p6iGQSnoaU+O1QAyWNp8+vWx8O++/Q8mfyZBvSeR3D480zzu cFUa9jVT3yzFBILA8k0Tg9wdmuAi1+6AwTIb/TPOTFCK2rSgrkRBDf0Mo+aOreqANhEb YNQCle1ex2VqGZ5Q0MN7UUe9Ns7lDTDLtTvUOoLz9Or/7s8SioN3oyGTk/8vdvC76Xj3 gzDXE2mYiUAFi+Q5pOZv20j+gZWeaaC2MGQvaYc6QU95WqEPC5C6ZHZOyst+HuvbfSRR Z8m+tJa+Wc/e2PNujvF36fhk68myIxEKGVeO6bs0SIMQnrosM1kyA/wv3ZnAbqw03K3O bFNA== X-Gm-Message-State: AG10YOQWq9AU0xQ3we1CGRIMEQuc8jTvBSJ6wFO/8y7ABdTICtkzedBz5AWic4mdugKlVg== X-Received: by 10.98.42.10 with SMTP id q10mr23244547pfq.73.1454709467940; Fri, 05 Feb 2016 13:57:47 -0800 (PST) Received: from localhost ([2620:0:1000:1600:d971:527c:5a7b:deb0]) by smtp.gmail.com with ESMTPSA id m86sm26647858pfi.27.2016.02.05.13.57.46 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 05 Feb 2016 13:57:47 -0800 (PST) From: Haixia Shi To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] drm/msm: remove the drm_device_is_unplugged check Date: Fri, 5 Feb 2016 13:57:43 -0800 Message-Id: <1454709464-2536-1-git-send-email-hshi@chromium.org> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 MIME-Version: 1.0 Cc: Haixia Shi X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.4 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 This flag is only used for drm/udl. Signed-off-by: Haixia Shi Reviewed-by: Stéphane Marchesin Reviewed-by: David Herrmann --- drivers/gpu/drm/msm/msm_fbdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_fbdev.c b/drivers/gpu/drm/msm/msm_fbdev.c index d95af6e..e119c29 100644 --- a/drivers/gpu/drm/msm/msm_fbdev.c +++ b/drivers/gpu/drm/msm/msm_fbdev.c @@ -65,9 +65,6 @@ static int msm_fbdev_mmap(struct fb_info *info, struct vm_area_struct *vma) struct drm_device *dev = helper->dev; int ret = 0; - if (drm_device_is_unplugged(dev)) - return -ENODEV; - ret = drm_gem_mmap_obj(drm_obj, drm_obj->size, vma); if (ret) { pr_err("%s:drm_gem_mmap_obj fail\n", __func__);