From patchwork Thu Sep 24 10:14:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 7255941 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 B2B479F39B for ; Thu, 24 Sep 2015 10:14:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AC7A0205F1 for ; Thu, 24 Sep 2015 10:14:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5F3E720938 for ; Thu, 24 Sep 2015 10:14:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753894AbbIXKOV (ORCPT ); Thu, 24 Sep 2015 06:14:21 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:33210 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753752AbbIXKOV (ORCPT ); Thu, 24 Sep 2015 06:14:21 -0400 Received: by pacex6 with SMTP id ex6so69221377pac.0 for ; Thu, 24 Sep 2015 03:14:20 -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; bh=go8gt8SGN72DkeBsFNP7omw0PNov8/mVdioHb/8dgK0=; b=nkGo/t6m6k4G9L6f1EPA2uKWndviGWsFORbIZpyF8k6u+2du35gTyiJaCvdSUe1k5d vx1CMcMOqR82hmk/Efh3jnHE5slBrza+SpC5MzVBCrZ4Ql79C30W1dVXfnyxwUURA2q8 AnRIX3U7Vs1WZdRcLa3tXG6yySgeS5KBQy1MKXitLSdArWEcCGiYyLc7IvhZValZhu/a k5/6b5LZlK39ZPG8DEXzD7O/NcXg6ebHRbtjh0zYuq9Qvi3n0HwMjzam5olLQXCMhSQj WMTnwqwxhmJeWnJM/Dd3/cosFzXUTqgWmUmfMJVbUXHtLDTOExCHMUuc5TiF5Jc9SSKm 0Zdg== X-Received: by 10.66.220.37 with SMTP id pt5mr6549983pac.138.1443089660341; Thu, 24 Sep 2015 03:14:20 -0700 (PDT) Received: from localhost (port-5631.pppoe.wtnet.de. [84.46.22.21]) by smtp.gmail.com with ESMTPSA id py6sm12766078pbb.62.2015.09.24.03.14.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Sep 2015 03:14:19 -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 1/3] drm/exynos: Suspend/resume is unused if !PM Date: Thu, 24 Sep 2015 12:14:13 +0200 Message-Id: <1443089655-15352-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.5.0 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 suspend and resume callbacks with an #ifdef CONFIG_PM_SLEEP guard to avoid "defined but not used" warnings. Signed-off-by: Thierry Reding --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index f0a5839bd226..e07a0fe16432 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -304,6 +304,7 @@ int exynos_atomic_commit(struct drm_device *dev, struct drm_atomic_state *state, return 0; } +#ifdef CONFIG_PM_SLEEP static int exynos_drm_suspend(struct drm_device *dev, pm_message_t state) { struct drm_connector *connector; @@ -340,6 +341,7 @@ static int exynos_drm_resume(struct drm_device *dev) return 0; } +#endif static int exynos_drm_open(struct drm_device *dev, struct drm_file *file) {