From patchwork Mon Nov 19 09:06:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel J Blueman X-Patchwork-Id: 199953 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 1F3B12C0097 for ; Mon, 19 Nov 2012 20:06:42 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753342Ab2KSJGk (ORCPT ); Mon, 19 Nov 2012 04:06:40 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:60801 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753183Ab2KSJGj (ORCPT ); Mon, 19 Nov 2012 04:06:39 -0500 Received: by mail-pa0-f46.google.com with SMTP id bh2so308239pad.19 for ; Mon, 19 Nov 2012 01:06:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=Hi2Ct7arwwvAcn/wpR7trLKgQq5W+biG1Mn4toJZTAo=; b=YQNmWp3U85KGxOMaG4D/aNeBwPzztXgUVUzM62lE+tRkHwWY0fg/TKdjAO+zCAzj8S Y3+CeOQYl2kLD46xjHcGE/UHFPryVmp2yDWNReEpMU9IFenhEgtfDK9R/jPgzssx8kYJ bJJi4awmZiGBq+kDLvm+iTl6EtAStxDcSKNt+3iLsRgDhEioYucZ1VALAyoDM1g++fKd YaFxVQrZ2q3gsTojj3/lUCw+bUN7w/9Lul6XJhXJoWSWjBL97gIZZMbgbncUGuh4J5W6 c29fud0DtOVznjGShFxUBV+Obh8K9J6/bihOffrgvflSMo6oSrZ2NZATMHRyz2RenzXs PyuA== Received: by 10.68.137.198 with SMTP id qk6mr37204668pbb.60.1353315998860; Mon, 19 Nov 2012 01:06:38 -0800 (PST) Received: from meiko.1dn ([115.42.131.38]) by mx.google.com with ESMTPS id ph7sm5911873pbb.9.2012.11.19.01.06.35 (version=SSLv3 cipher=OTHER); Mon, 19 Nov 2012 01:06:38 -0800 (PST) From: Daniel J Blueman To: Jeff Garzik Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel J Blueman Subject: [PATCH] AHCI: fix build warning when PM && !PM_SLEEP Date: Mon, 19 Nov 2012 17:06:26 +0800 Message-Id: <1353315986-27317-1-git-send-email-daniel@quora.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQmlFAhm1DXHmTPYS+kkw1/YR4zymuEYwMLVQ/0HfytAZJ2m1ughPkq1cXr1UYl9FCBYCocW Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Change the conditional around ahci_suspend/resume to the same as the SIMPLE_DEV_PM_OPS macro that uses these functions, fixing an unused build warning. Signed-off-by: Daniel J Blueman --- drivers/ata/ahci_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index b1ae480..b7078af 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -238,7 +238,7 @@ static int __devexit ahci_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int ahci_suspend(struct device *dev) { struct ahci_platform_data *pdata = dev_get_platdata(dev);