From patchwork Tue Mar 17 14:34:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 11443063 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 180E26CA for ; Tue, 17 Mar 2020 14:34:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EA6A5206EC for ; Tue, 17 Mar 2020 14:34:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dEOeZV8v" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EA6A5206EC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5Rycq2iTFbCjYAbqO/x63dFxW8SkMfl7/UYnAI1KYE0=; b=dEOeZV8vh+DfXV XLaTrBc18DSSsQLtK3SsFN/8q/6WIwxsUE1F6KySjxNdqW0XFfCxrKZtX4zjJT7wsv7Zc5Wr684V5 vzOyxNkkAbk80ULE+2JUx1SlIXd6G0rxCctA8ZZkun0L6zwCH7vTlp4R6oHHoTRsO/1WqBSPwrCYN BL5iJ8S2PFbv0MsfXZjcBA9PPuLAel6KHVGyF7FaJyhFXMwa/HpZjDkQDub1KNhWAef9+3gQvQI6W aDmT5bTX+BVWbCLH1BOD1AJsS2RF3LW3VnlBsylVwSaKvkg2s4bnqg3FQ210vT52mWirTY7KlLKp6 SxXyAmWMleoASX/3ZtVA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jEDIq-00022f-9j; Tue, 17 Mar 2020 14:34:44 +0000 Received: from relay10.mail.gandi.net ([217.70.178.230]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jEDIg-0001vS-RP; Tue, 17 Mar 2020 14:34:37 +0000 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id C5F1324000A; Tue, 17 Mar 2020 14:34:28 +0000 (UTC) From: Alexandre Belloni To: Eddie Huang , Sean Wang , Alessandro Zummo , Alexandre Belloni Subject: [PATCH v2] rtc: mt2712: fix build without PM_SLEEP Date: Tue, 17 Mar 2020 15:34:21 +0100 Message-Id: <20200317143421.9551-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200317_073435_021263_CF9ED9B7 X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.70.178.230 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rtc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org Fix this build error when PM_SLEEP is not selected: drivers/rtc/rtc-mt2712.c:412:10: error: ‘mt2712_pm_ops’ undeclared here (not in a function); did you mean ‘mt2712_rtc_ops’? 412 | .pm = &mt2712_pm_ops, | ^~~~~~~~~~~~~ Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-mt2712.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rtc/rtc-mt2712.c b/drivers/rtc/rtc-mt2712.c index 62c20241426d..581b8731fb8a 100644 --- a/drivers/rtc/rtc-mt2712.c +++ b/drivers/rtc/rtc-mt2712.c @@ -409,7 +409,9 @@ static struct platform_driver mt2712_rtc_driver = { .driver = { .name = "mt2712-rtc", .of_match_table = mt2712_rtc_of_match, +#ifdef CONFIG_PM_SLEEP .pm = &mt2712_pm_ops, +#endif }, .probe = mt2712_rtc_probe, };