From patchwork Wed May 30 13:04:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 137260 Delivered-To: patches@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp5297112lji; Wed, 30 May 2018 06:04:30 -0700 (PDT) X-Received: by 2002:a19:59c3:: with SMTP id n186-v6mr1676954lfb.79.1527685470142; Wed, 30 May 2018 06:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527685470; cv=none; d=google.com; s=arc-20160816; b=qkRm/Io8jAyYZyWCZ+8se1hkM5DJw5XYpOb3wc6tWfQ2qQuV2YIyBT51r/IrHcufO7 gpItF3RBVCigTVUVDnSbKu9a70OjSsHKvAiFRzgQpJOV514phfZIa16nlARo9E2Rbw2J iAXtcZPuYoaAY2QJlyrqv0bXnooNaPYalw5VzNZSiOnYLoen7+50QRCLlmyRpczh+wt9 /lezF/S8/CYsq+8z2wuU7iQDYRvnS6UZLXDnRt6hPPu20ZqjHE5jZVHySXr78d2Ho1Cd bMaFQUCHcy7cemzpka26JumN4Gsc3zLAgmIWUEr1yDDTf787Bcsg6d0chNFJAVPuW+lO B3Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=caggOXgzP1zI4RqLpGVpXMfOZxnkpgVG6pq1BT0ZP6E=; b=g+Mei51+Qrp22WwAg2Z+WrKYywf1h7lAUFIMAQTrbBWlS4ucX9paS86rjMi6q2vUhG SW+4QGYwIBpnr0Yw+pHxIyewPM0AgrfMeX9X2/8/JNls06LZCGaY7pGn+VWmnV5EeTMh 1qnjYdPYfLPkpG/YuPiIVPcpDebPIsDj7wLNlC13nl8lm7eK1yjQzq4u9YXpedVf6gwe /kbHRu7/6rmZo3jDgeo/cALb9Rgob/fHBgukW1PqyDA6O29/Z6qEdZME8259FUbrh+jf rXUfYMN7zCp/hO9hREI4Ga6laOoKkUlb2OlWAxHBhFPMi7UecjvdNDRM/KewmvMLMOqT n/Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WqEJYzrj; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 77-v6sor2231695ljz.84.2018.05.30.06.04.30 for (Google Transport Security); Wed, 30 May 2018 06:04:30 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WqEJYzrj; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=caggOXgzP1zI4RqLpGVpXMfOZxnkpgVG6pq1BT0ZP6E=; b=WqEJYzrj2nKk7DgjAvWncOX9u7+gnJSXMrB2KQQrGDt8naYJFYAGQpvOdtZrFZNlEK rdD63a2pFD7NlQdmLGITcX+mcaUiN8w8noBNb1f0NMNtaY5p+twIl5y++3r7p4iXQRPA cdalZZGxD4g0Xw53eLUhaiPEzkTlFf2Bovq2s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=caggOXgzP1zI4RqLpGVpXMfOZxnkpgVG6pq1BT0ZP6E=; b=dvQokYpa6NtaGh/L0WeVKOFa+Eam3jm81jm5R/X9iyezK7mBYh6Tu2BVauc0YEviDo dSQCNabzfq2gqYxTiNKMricuUiSBxvfFkAYZl/cFF6GP/nvMgJgW5U33HIInygWQPL/B BQOCLFs7uLqmVgIDNH7Ca2YyTIKwK63ZL6Hfs0+FNvyeUBce784cok/Ac2xp7SchagXg l37urS7nVlZjx5JY+M66Lf8w62ENmnVDrFRxGPznmG7+yPC15uAPlW+qFG4wHDpR8uF1 zw7uYHmNjXHz01Nt9+3hCEvPYRpcSijI4G0mBOWpxnKW6Dc7FLlA0/T2/ltDFeZBzzmo Y8xQ== X-Gm-Message-State: ALKqPweO4rtttgFYShxvJcsY4AlZCoQDTk7gVdc1y3yBuoLPUNTGEfI2 NJDMT0Z70BoY4rgIsSUapf8MqfHUP3ACFw== X-Google-Smtp-Source: ADUXVKLhNPVNmSq2rc4H+UNCBsR3VR9Ka/suZaDSPoOytHF7H6FO23DUVXRHQAJcY+aVEYuXuwsAsg== X-Received: by 2002:a2e:7f02:: with SMTP id a2-v6mr2087656ljd.14.1527685469966; Wed, 30 May 2018 06:04:29 -0700 (PDT) Return-Path: Received: from uffe-XPS-13-9360.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id h4-v6sm1773064ljc.8.2018.05.30.06.04.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 May 2018 06:04:29 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Subject: [PATCH 2/2] mmc: sunxi: Use ifdef rather than __maybe_unused Date: Wed, 30 May 2018 15:04:25 +0200 Message-Id: <20180530130425.3831-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.0 To be consistent with code in other mmc host drivers, convert to check the correct PM config #ifdef in favor of using __maybe_unused. Signed-off-by: Ulf Hansson --- drivers/mmc/host/sunxi-mmc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.17.0 diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c index 837888b96bd3..e7472590f2ed 100644 --- a/drivers/mmc/host/sunxi-mmc.c +++ b/drivers/mmc/host/sunxi-mmc.c @@ -1432,7 +1432,8 @@ static int sunxi_mmc_remove(struct platform_device *pdev) return 0; } -static int __maybe_unused sunxi_mmc_runtime_resume(struct device *dev) +#ifdef CONFIG_PM +static int sunxi_mmc_runtime_resume(struct device *dev) { struct mmc_host *mmc = dev_get_drvdata(dev); struct sunxi_mmc_host *host = mmc_priv(mmc); @@ -1449,7 +1450,7 @@ static int __maybe_unused sunxi_mmc_runtime_resume(struct device *dev) return 0; } -static int __maybe_unused sunxi_mmc_runtime_suspend(struct device *dev) +static int sunxi_mmc_runtime_suspend(struct device *dev) { struct mmc_host *mmc = dev_get_drvdata(dev); struct sunxi_mmc_host *host = mmc_priv(mmc); @@ -1459,6 +1460,7 @@ static int __maybe_unused sunxi_mmc_runtime_suspend(struct device *dev) return 0; } +#endif static const struct dev_pm_ops sunxi_mmc_pm_ops = { SET_RUNTIME_PM_OPS(sunxi_mmc_runtime_suspend,