From patchwork Mon Mar 16 10:47:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 11440133 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 8265414B4 for ; Mon, 16 Mar 2020 10:48:38 +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 607A420663 for ; Mon, 16 Mar 2020 10:48:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BEhS0Jko" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 607A420663 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-arm-kernel-bounces+patchwork-linux-arm=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=kajDH7Zmwd3deZb9WlapyD6Ql/TeONwiKZ0YqgfVbvA=; b=BEhS0Jko+ERkTi omTVU9OSpu5YyQWWZgPbegQn81xqlTQ08SgxaOOm+H2ugczYBybffMQYKG7pGeCXojghMx28uld6/ km8d6es+o3W5oRp+XT4UH7X0wF9wx9sHq2Dcq49LVSnEEUss48Sa/tE+O/fRpKSgMbmo5ZICRvk9C /sMr1hNzS/xtMcfFO0PNvViyurNVgT/uuNTVjZ6MAvGnaGvvUudP6iQS/dCPkSPFsNRh92SFHdGgC d8dbKmemt7CvVO3qJXYM1mptgikWah9vTASBqAYT/UcojzxRGVJXBBZxm7wpTohkbEDJRuz/TmePs t8kLo/RqaDFKHYmOhDag==; 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 1jDnIQ-0007ar-A0; Mon, 16 Mar 2020 10:48:34 +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 1jDnIN-0007Zd-KU; Mon, 16 Mar 2020 10:48:33 +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 227A9240024; Mon, 16 Mar 2020 10:47:18 +0000 (UTC) From: Alexandre Belloni To: Eddie Huang , Sean Wang , Alessandro Zummo , Alexandre Belloni Subject: [PATCH 1/2] rtc: mt2712: fix build without PM_SLEEP Date: Mon, 16 Mar 2020 11:47:00 +0100 Message-Id: <20200316104701.209293-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-20200316_034831_807307_FFCEBB5B X-CRM114-Status: GOOD ( 11.66 ) 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_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Move SIMPLE_DEV_PM_OPS out of #ifdef to fix build issues when PM_SLEEP is not selected. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-mt2712.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-mt2712.c b/drivers/rtc/rtc-mt2712.c index 432df9b0a3ac..c2709c1602f0 100644 --- a/drivers/rtc/rtc-mt2712.c +++ b/drivers/rtc/rtc-mt2712.c @@ -394,10 +394,10 @@ static int mt2712_rtc_resume(struct device *dev) return 0; } +#endif static SIMPLE_DEV_PM_OPS(mt2712_pm_ops, mt2712_rtc_suspend, mt2712_rtc_resume); -#endif static const struct of_device_id mt2712_rtc_of_match[] = { { .compatible = "mediatek,mt2712-rtc", }, From patchwork Mon Mar 16 10:47:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 11440153 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 DEE1A14B4 for ; Mon, 16 Mar 2020 10:50:05 +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 BD0E520719 for ; Mon, 16 Mar 2020 10:50:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Xv30/8Wl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD0E520719 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-arm-kernel-bounces+patchwork-linux-arm=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:References:In-Reply-To: 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: List-Owner; bh=PfxSPEiJfyhsbGjj7QF7t5oC2qYevKurzWncnv0WCQ8=; b=Xv30/8Wl8MtoTO w2EvvljMMRmfOD+4C+Nuv62Xav8cfwbx37BkoD8OLeo60VoyHZ2++RFrdSuIfJX5LWqmEeZX3Gvbu pxECpQ2EI8Br6sDeyiOIdpmrha7WV4yAVx/gvnJdaTzZfUioC9oHtnSrHqdRIlcHHylgimHP1Ggcf 0ZCuOroZ74lESt8UQQy5XJuc2OGtrS3m50BzLL8uZtovUhymDRhrKQHPGJh4mCE3MN7dQSMG4TAbM sXyHXgQIA3wNH6jiP6gTNsiGYwv03EpPaP6yOr420FDmwnx3PYruNfj+GSibkeKZHK1ayqE8MzXWl omDCmFr5AMElifi3GfdQ==; 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 1jDnJo-0008Hw-4n; Mon, 16 Mar 2020 10:50:00 +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 1jDnJk-0008H6-T1; Mon, 16 Mar 2020 10:49:58 +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 140FD24001D; Mon, 16 Mar 2020 10:48:29 +0000 (UTC) From: Alexandre Belloni To: Eddie Huang , Sean Wang , Alessandro Zummo , Alexandre Belloni Subject: [PATCH 2/2] rtc: mt2712: remove unused variable Date: Mon, 16 Mar 2020 11:47:01 +0100 Message-Id: <20200316104701.209293-2-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200316104701.209293-1-alexandre.belloni@bootlin.com> References: <20200316104701.209293-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200316_034957_076211_6080DC07 X-CRM114-Status: GOOD ( 10.03 ) 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_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org irqen is not used in mt2712_rtc_set_alarm, remove it. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-mt2712.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/rtc/rtc-mt2712.c b/drivers/rtc/rtc-mt2712.c index c2709c1602f0..617e397dd820 100644 --- a/drivers/rtc/rtc-mt2712.c +++ b/drivers/rtc/rtc-mt2712.c @@ -232,7 +232,6 @@ static int mt2712_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) { struct mt2712_rtc *mt2712_rtc = dev_get_drvdata(dev); struct rtc_time *tm = &alm->time; - u16 irqen; dev_dbg(&mt2712_rtc->rtc->dev, "set al time: %ptR, alm en: %d\n", tm, alm->enabled);