From patchwork Thu Sep 24 10:14:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 7255971 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 042A4BEEC1 for ; Thu, 24 Sep 2015 10:14:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3986D20A29 for ; Thu, 24 Sep 2015 10:14:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8920F205F1 for ; Thu, 24 Sep 2015 10:14:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753528AbbIXKO3 (ORCPT ); Thu, 24 Sep 2015 06:14:29 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:36738 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754084AbbIXKO2 (ORCPT ); Thu, 24 Sep 2015 06:14:28 -0400 Received: by pacgz1 with SMTP id gz1so2667123pac.3 for ; Thu, 24 Sep 2015 03:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=r6BPDTXPdHu1PQSL4nO3w22Z0ypzVuomyMg1QA2rngk=; b=R0+Lffi7kfaOqpltwitcQMMGGRza8mV3nh+j5jiJYKmKebwsdnOodTFzYX8msYJaVE YeukXSBsCeSTMrGsrZ788Wi6NnM12IX58DqWA3omeL1d8Gx/5likcHk9xMccB+dNW/8Z 0dR9jHdXOc0rEvxS8QXEpQLrwbZajQckVECdNwAWGBUsvVDzkWt2oZjIylMLC8tbljU/ nipenWLgDUxLmwtSUzLt0+L2PThUhsgcVlwQWz7NgNLVmaVCsLswiCDE7u1hDKm6Yd1V 5rRy+8J4Do2jK3BOg5lkcH5WWhL5kVfHRuHjRbXARsNFUolGghkPY1n2KW02BztesBNc 9tDg== X-Received: by 10.67.15.36 with SMTP id fl4mr43269858pad.152.1443089668282; Thu, 24 Sep 2015 03:14:28 -0700 (PDT) Received: from localhost (port-5631.pppoe.wtnet.de. [84.46.22.21]) by smtp.gmail.com with ESMTPSA id eh4sm12800900pbd.27.2015.09.24.03.14.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Sep 2015 03:14:27 -0700 (PDT) From: Thierry Reding To: Inki Dae Cc: Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 3/3] drm/exynos: rotator: Clock control is unused if !PM Date: Thu, 24 Sep 2015 12:14:15 +0200 Message-Id: <1443089655-15352-3-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1443089655-15352-1-git-send-email-thierry.reding@gmail.com> References: <1443089655-15352-1-git-send-email-thierry.reding@gmail.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 From: Thierry Reding Protect the rotator_clk_crtl() function with an #ifdef CONFIG_PM guard to avoid "defined but not used" warnings. Signed-off-by: Thierry Reding Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_drm_rotator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c b/drivers/gpu/drm/exynos/exynos_drm_rotator.c index 425e70625388..2f5c118f4c8e 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c +++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c @@ -786,6 +786,7 @@ static int rotator_remove(struct platform_device *pdev) return 0; } +#ifdef CONFIG_PM static int rotator_clk_crtl(struct rot_context *rot, bool enable) { if (enable) { @@ -822,7 +823,6 @@ static int rotator_resume(struct device *dev) } #endif -#ifdef CONFIG_PM static int rotator_runtime_suspend(struct device *dev) { struct rot_context *rot = dev_get_drvdata(dev);