Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1396070pxb; Sat, 17 Apr 2021 16:55:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7yxpbaKYtnDQAxorNbztIYAE3an+bR4Q0AHFi5FtJmAa5CLyRJByyZ1X6MVryCR8QXYcl X-Received: by 2002:aa7:c78a:: with SMTP id n10mr9779590eds.239.1618703723685; Sat, 17 Apr 2021 16:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618703723; cv=none; d=google.com; s=arc-20160816; b=wcj8Wzh7Tm2xNfFnxepT5DNPrXQoWm9GhtoMDxjkdbfDcPVMxijVTtNWelyBaYucJF lYtBbFRZzJKJiwzY3C4eyV3Teugtx9CR6pA9oNxZaKjefaGRfVjoT2511LjX1QFI7Do/ mrtRReOskc/WgyPyLdhVFbRtDxXBT6UwjYV20EbFybXWNzXU4NsDmeke2dLVgX/3Yd44 nx1s9K9kWwlRCE9ZNT+4V2wQKFxl+9BbfLnIltmiQOqv4FHaXxaZyH2ECaz9GTu8ghgY dPLdVLT6eCdc3H1WD8640o4Bwv9kg3zUTXgUs7gbaD8Iz9YFCMfDw/bGppC+g4Z0tOlJ cgdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LOa9LD3KMHnzF5epRpDKciNGnv3jucaT+HVdQi1TJuU=; b=VMoAiyt7Ha47iycmEuH8jXyBlBZr8EW+D/uZx5q7WjFsMKsHz+igfhrmOmtOw8jFS6 EGDBjdyJVepILdTTaXztng6Y7MTbtjB7ByMsSq5kThIlp/BFuNkjWGcltI04zEm91HX5 /IqxrzOixDdqyrLG8Bs6j0QLPCC8Mhi50G8CuldFHPHQ4sm++G8mzP6voQpPeupsRVkb VBkfrZyDPq6/2qfOrJBgxE2lRBiUX17Dq/6f0W2LKW2eHiIwSE9Y3+hBr97vf7EuivWQ nywOm97P1UNbNCeHo3gWZG2e8PLsPAdo1QDHIESjVcxf8AfLGtqrDrgw4NNspi8ZadLu OYPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lv11si6243100ejb.295.2021.04.17.16.55.00; Sat, 17 Apr 2021 16:55:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235869AbhDQXwl (ORCPT + 99 others); Sat, 17 Apr 2021 19:52:41 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:60585 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230216AbhDQXwl (ORCPT ); Sat, 17 Apr 2021 19:52:41 -0400 X-Originating-IP: 90.65.108.55 Received: from localhost (lfbn-lyo-1-1676-55.w90-65.abo.wanadoo.fr [90.65.108.55]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 61FAB240002; Sat, 17 Apr 2021 23:52:12 +0000 (UTC) From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] imx-sc: remove .read_alarm Date: Sun, 18 Apr 2021 01:52:05 +0200 Message-Id: <20210417235205.994119-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The RTC core properly handles RTC without .read_alarm and doesn't use it to set alarms. .read_alarm can be safely dropped. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-imx-sc.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/rtc/rtc-imx-sc.c b/drivers/rtc/rtc-imx-sc.c index cc9fbab49999..814d516645e2 100644 --- a/drivers/rtc/rtc-imx-sc.c +++ b/drivers/rtc/rtc-imx-sc.c @@ -80,16 +80,6 @@ static int imx_sc_rtc_alarm_irq_enable(struct device *dev, unsigned int enable) return imx_scu_irq_group_enable(SC_IRQ_GROUP_RTC, SC_IRQ_RTC, enable); } -static int imx_sc_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) -{ - /* - * SCU firmware does NOT provide read alarm API, but .read_alarm - * callback is required by RTC framework to support alarm function, - * so just return here. - */ - return 0; -} - static int imx_sc_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) { struct imx_sc_msg_timer_rtc_set_alarm msg; @@ -127,7 +117,6 @@ static int imx_sc_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) static const struct rtc_class_ops imx_sc_rtc_ops = { .read_time = imx_sc_rtc_read_time, .set_time = imx_sc_rtc_set_time, - .read_alarm = imx_sc_rtc_read_alarm, .set_alarm = imx_sc_rtc_set_alarm, .alarm_irq_enable = imx_sc_rtc_alarm_irq_enable, }; -- 2.30.2