From patchwork Fri Nov 6 21:49:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320859 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1658203ilc; Fri, 6 Nov 2020 13:52:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7fto0SA8N+/Uz52kW6XrByINnZeG0wA3cC1XW1sobZbwWBeFBp19FlHCam3Ffa+gVeEN9 X-Received: by 2002:a17:902:9a4c:b029:d6:1f21:8021 with SMTP id x12-20020a1709029a4cb02900d61f218021mr3128263plv.58.1604699432502; Fri, 06 Nov 2020 13:50:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604699432; cv=none; d=google.com; s=arc-20160816; b=JRIRtYXEGR8CLN1AizfNGlQd3iFr04+sa4AjKpqQy9CpZIa/7OxYEBl31r0dul7l7w /d9Te8jB4JfuZwR2Mll5RhEGpKtxZFbTlHcoDEQF4/eHpZavL8xNRYHS5+xG0bnXdkO5 kg38E00DBJq9W9ctqZ7WIE2D+zoChhDh0TVYRbTHIOgoGkOS2LnnIvdltCypfTPP9Cwt eevLWrzKIBBIK13Qh3KFxvlco+zz1MXIw7x6GuhWobSIdtrmJvCMBhoP37vzcF0bsc1u oU608JIFic2b4gx4HYmORuWJh1DxKN6bj3HXEjaZlWmUnSWi1BlCKPoogXwo5yRdAz1Z 7CYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=Bmx+KpHlYyBZUF5S+uAA07/kkO+Nhf/GRk16z5GsSs4=; b=g1q3U/FCCgV0b2/mNoBhYqwmeAJqETUjK8rKeOkVaNqdLgkpR83nOf6ZEJaDFTxp2F lETpY32tZ50fHtgAiyTC6FsSSj+ZIVGvpf+ETpBpLc0kuu6RDPBFMFWzYnIUIiRcrEOc Aks/cQiC6y0F37O4f/hjnES7WlUZ0gSLTGF4CuwdvgQXYMAByJTbcgmZZowYjHhHkyqd MTsCUrVl4WDEQh3BnQTR1E4MCFMRbNKhxxzrRAcJ/MgN3dpFF6rx4rrPTJNL1+6G0FET rjpsbQ75By0vf1l79IsW3reJSnMUPPR2nbesZUa24CFVdHZv2ZUK62PuKG4HgCRXC1z/ q9Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TxSb65pM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id f22si2127136plr.4.2020.11.06.13.50.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 13:50:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TxSb65pM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EB82F6EB36; Fri, 6 Nov 2020 21:50:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id A234B6EB36 for ; Fri, 6 Nov 2020 21:50:18 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id p1so2767500wrf.12 for ; Fri, 06 Nov 2020 13:50:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1BAWNAgt/8o6t/4tV7E6hU4K4LH6BnOtAjU2sn0ZUiI=; b=TxSb65pMrJbCHOjX25f6OYd4V3p7wJVF4lcHGevOnmecoTAVwndthxXLhT3rNte7gY AxAnOEXF595IqOTv2Y5tl+q50a13jAGJ59jbWY73piaE9WrgUamD9uoaZbFhY8wJMRg2 D1CJcaJ5NE9ZQKz0Q8+Es7snc67U/gUqzxXuX4Y6nXFEwrGx3ic3MXsvei2itMhLMVB8 JVNmWtaKLiz5e3hAyW4MwkdidZUdfHiWY/HKn2rt37hARCWQPKS0ohh8s4047lOVBBrX S6un+r7uNWVJchl8piFvJz5DGC95hpA+4lq85jUn/8NZ4cRfK/K7b85Y78SdYlNn0Z4b M/ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1BAWNAgt/8o6t/4tV7E6hU4K4LH6BnOtAjU2sn0ZUiI=; b=menpoAu6wPpec6C3RNe/9EKCCwsBxTtyqtmi5u5buwIIQm10vZIDSF/q7UfG4R2YYm 2J3gwdjik1NJcWS8u+TTBxYq7J7vt+4FmyRD5/2pubK6vuJIEnUCipzOeZ/Yvp/srL2Z tCMFgCcgPiym/pwh80V85nRhgpAf0/FpxiY672HXiB6MvH5mUb9XyFwa8OO+6n9jMR+k joiluqVYNfvMm+N2oZ3w0qP3RfLjiq6JjO76gHEe/9mU4eg3k2m54a4zHQwBQB7t7P4Y gsZEm8ZWanwF6Nk4wMHeRti1IJ+JR14xkknKCxZa/onq6tDWq7HrgR364uiiR8GolAMe cnJw== X-Gm-Message-State: AOAM531rnQ3WKUlfQvYjUUPSA5a3eEH/c00Z7UCfS/WZVzEPPWxpbd84 kzBHK1N443jHQS3fR+mhHpG6eQ== X-Received: by 2002:adf:f2c7:: with SMTP id d7mr1084417wrp.142.1604699417367; Fri, 06 Nov 2020 13:50:17 -0800 (PST) Received: from dell.default ([91.110.221.236]) by smtp.gmail.com with ESMTPSA id t199sm3981084wmt.46.2020.11.06.13.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 13:50:16 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 19/19] drm/v3d/v3d_drv: Remove unused static variable 'v3d_v3d_pm_ops' Date: Fri, 6 Nov 2020 21:49:49 +0000 Message-Id: <20201106214949.2042120-20-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201106214949.2042120-1-lee.jones@linaro.org> References: <20201106214949.2042120-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/v3d/v3d_drv.c:73:32: warning: ‘v3d_v3d_pm_ops’ defined but not used [-Wunused-const-variable=] Cc: Eric Anholt Cc: David Airlie Cc: Daniel Vetter Cc: Philipp Zabel Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- 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 9f7c261938312..a5bf09458451c 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) {