From patchwork Fri Aug 14 11:58:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 7014401 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 343D29F344 for ; Fri, 14 Aug 2015 11:59:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6504920607 for ; Fri, 14 Aug 2015 11:59:24 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 4B0BE20515 for ; Fri, 14 Aug 2015 11:59:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 431756EF03; Fri, 14 Aug 2015 04:59:21 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by gabe.freedesktop.org (Postfix) with ESMTPS id BDE8F6EF03 for ; Fri, 14 Aug 2015 04:59:19 -0700 (PDT) Received: by paccq16 with SMTP id cq16so15359233pac.1 for ; Fri, 14 Aug 2015 04:59:19 -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=VMv1q+dbSvCNFm+2ADlomGwVN87akBPdKF4aU7rzROA=; b=r4C41ZpHsYFRnonSl3Bsm6v4bGBdcgMdiU2ogQKue1J7qxL2pECGa9ScCwqrYcF//p bi0hpj1ndCUVLfcu7RfWFAfskOf8lcwvCIt2ieupBKIQnrFWe++tczfhEuxUve5iPxZQ v7eI9l1F8+19lugjg62gHL6yLZUDLBUl1EIdd39uIRBQh28rHxaz1LPXO2UuXGKsCZy+ DlhQ87Id1/mfsiYNEeSYLsPrMSqw8m7FwYpBJ3NCYRLeWqkn2EOkM8kh9amKgjIB4DEQ nCc8Kq+hvDs/UCq+q6BzauTjSuT+/QTgTlgDHg5MXWMSiC9R1XAnzis7JJooXWkX/sw0 HDaA== X-Received: by 10.67.5.36 with SMTP id cj4mr5868211pad.140.1439553558972; Fri, 14 Aug 2015 04:59:18 -0700 (PDT) Received: from localhost (port-20419.pppoe.wtnet.de. [46.59.141.105]) by smtp.gmail.com with ESMTPSA id rg10sm5834152pbc.33.2015.08.14.04.59.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 04:59:18 -0700 (PDT) From: Thierry Reding To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/atmel-hlcdc: Compile suspend/resume for PM_SLEEP only Date: Fri, 14 Aug 2015 13:58:20 +0200 Message-Id: <1439553500-3264-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.4.5 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 From: Thierry Reding If PM is enabled but PM_SLEEP is disabled, the suspend/resume functions are still unused and produce a compiler warning. Signed-off-by: Thierry Reding Acked-by: Boris Brezillon --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c index b6bc5cb9b9ee..303ae68f983d 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c @@ -561,7 +561,7 @@ static int atmel_hlcdc_dc_drm_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int atmel_hlcdc_dc_drm_suspend(struct device *dev) { struct drm_device *drm_dev = dev_get_drvdata(dev);