[PATCH] rtc: rtc-jz4740: remove unused function in rtc-jz4740.c

From: Baoyou Xie
Date: Sun Sep 25 2016 - 05:08:20 EST


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@xxxxxxxxxx>
---
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