[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1474794449-26185-1-git-send-email-baoyou.xie@linaro.org>
Date: Sun, 25 Sep 2016 17:07:29 +0800
From: Baoyou Xie <baoyou.xie@...aro.org>
To: a.zummo@...ertech.it, alexandre.belloni@...e-electrons.com
Cc: rtc-linux@...glegroups.com, linux-kernel@...r.kernel.org,
arnd@...db.de, baoyou.xie@...aro.org, xie.baoyou@....com.cn,
han.fei@....com.cn, tang.qiang007@....com.cn
Subject: [PATCH] rtc: rtc-jz4740: remove unused function in rtc-jz4740.c
We get 1 warning when building kernel with W=1:
drivers/rtc/rtc-jz4740.c:206:6: warning: no previous prototype for 'jz4740_rtc_poweroff' [-Wmissing-prototypes]
In fact, this function is unused in
drivers/rtc/rtc-jz4740.c, but should be removed.
So this patch removes the unused function.
Signed-off-by: Baoyou Xie <baoyou.xie@...aro.org>
---
drivers/rtc/rtc-jz4740.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/rtc/rtc-jz4740.c
index 5e14651..4788cc0 100644
--- a/drivers/rtc/rtc-jz4740.c
+++ b/drivers/rtc/rtc-jz4740.c
@@ -203,13 +203,6 @@ static irqreturn_t jz4740_rtc_irq(int irq, void *data)
return IRQ_HANDLED;
}
-void jz4740_rtc_poweroff(struct device *dev)
-{
- struct jz4740_rtc *rtc = dev_get_drvdata(dev);
- jz4740_rtc_reg_write(rtc, JZ_REG_RTC_HIBERNATE, 1);
-}
-EXPORT_SYMBOL_GPL(jz4740_rtc_poweroff);
-
static int jz4740_rtc_probe(struct platform_device *pdev)
{
int ret;
--
2.7.4
Powered by blists - more mailing lists