Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp255000ybz; Fri, 17 Apr 2020 00:10:08 -0700 (PDT) X-Google-Smtp-Source: APiQypLP9DZoHpFYE7SeHEwMv2jLF3Lkg/o7TWXDz649twa93PbfuU/t5M0crjTW6BgjXtHKIhSf X-Received: by 2002:a17:906:4048:: with SMTP id y8mr1680687ejj.258.1587107408069; Fri, 17 Apr 2020 00:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587107408; cv=none; d=google.com; s=arc-20160816; b=vNGxXAzPC0Z91IJrljYzzxL1usuYUai8HKnor75MTTyGb7iVgA3FqHtVgH+/rfME5U EpXZq/z8mDiTqX0u09l4YIrfOiQ6GOKo+psWE8R6YNR2M20hefV04Ccf6/NyZxQl8abR GkIM4Mo/8fuLLbDzH+Y90Km/sRz6MFtE7KGQCeZ8K++kqvSvL1R8wS51N+ugvigFPp0V K06XBUdvFyeWhzT73cHfP/14gEE3Jxw3G4ABEXQH99NUE/nwdtqJq4YxdWW4Y6jjpj3H qCIcU1Z3pfypXPnqyAbpHhHlyM6/cL/b8aaxQDJgPycQgJtWZo3Mtg9hFRQ4rTUov9DS oiKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=GYsVMnSk40tNPQePZPBJZlaijDOc6+wKJt+KXfMmvl4=; b=Rt3t14RwG7++9mpakoZxQlAa5lvClLQ/uImtNOooc2c5CHfQsB5mBLisA8qpQ5NedE QjE5Inbs+nJPxT93IQ7gMfF9YDG3vzE8zyipSvp6C6GJGYPlj/rqxv0tcBsLqQn3g1US Gowvgd09tzVHigbsKea+uH/WFaovEJfSUwj11LOC2o5dHkOimJpGTxcQZJIaP6apxrHF RDYXQLlNsmc19gp/TSQc5YgMCZsoUU+5u+dlwhraWU5dmBleTOIRFSIUiOueb8t5LH1+ 4pyiei/FGUOYNK7tcqg/EplYcyp3/t5QYylGuyCpprO+8ut9MT4i4kBCbGnJVksNQeJc 82zQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si15875072edp.102.2020.04.17.00.09.45; Fri, 17 Apr 2020 00:10:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728663AbgDQHGf (ORCPT + 99 others); Fri, 17 Apr 2020 03:06:35 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2388 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728338AbgDQHGe (ORCPT ); Fri, 17 Apr 2020 03:06:34 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id CE01AEDE46B32705C65D; Fri, 17 Apr 2020 15:06:32 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Apr 2020 15:06:22 +0800 From: Jason Yan To: , , , , , , CC: Hulk Robot Subject: [PATCH] drm/v3d: remove unused 'v3d_v3d_pm_ops ' Date: Fri, 17 Apr 2020 15:32:43 +0800 Message-ID: <20200417073243.40552-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/gpu/drm/v3d/v3d_drv.c:73:32: warning: ‘v3d_v3d_pm_ops’ defined but not used [-Wunused-const-variable=] static const struct dev_pm_ops v3d_v3d_pm_ops = { ^~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/v3d/v3d_drv.c | 36 ----------------------------------- 1 file changed, 36 deletions(-) diff --git a/drivers/gpu/drm/v3d/v3d_drv.c b/drivers/gpu/drm/v3d/v3d_drv.c index 8d0c0daaac81..63f09c55a970 100644 --- a/drivers/gpu/drm/v3d/v3d_drv.c +++ b/drivers/gpu/drm/v3d/v3d_drv.c @@ -38,42 +38,6 @@ #define DRIVER_MINOR 0 #define DRIVER_PATCHLEVEL 0 -#ifdef CONFIG_PM -static int v3d_runtime_suspend(struct device *dev) -{ - struct drm_device *drm = dev_get_drvdata(dev); - struct v3d_dev *v3d = to_v3d_dev(drm); - - v3d_irq_disable(v3d); - - clk_disable_unprepare(v3d->clk); - - return 0; -} - -static int v3d_runtime_resume(struct device *dev) -{ - struct drm_device *drm = dev_get_drvdata(dev); - struct v3d_dev *v3d = to_v3d_dev(drm); - int ret; - - ret = clk_prepare_enable(v3d->clk); - if (ret != 0) - return ret; - - /* XXX: VPM base */ - - v3d_mmu_set_page_table(v3d); - v3d_irq_enable(v3d); - - return 0; -} -#endif - -static const struct dev_pm_ops v3d_v3d_pm_ops = { - SET_RUNTIME_PM_OPS(v3d_runtime_suspend, v3d_runtime_resume, NULL) -}; - static int v3d_get_param_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) { -- 2.21.1