Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1490856 > unrolled thread

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

Started byBaoyou Xie <baoyou.xie@linaro.org>
First post2016-09-25 11:10 +0200
Last post2016-09-25 11:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] rtc: rtc-jz4740: remove unused function in rtc-jz4740.c Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-25 11:10 +0200

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

FromBaoyou Xie <baoyou.xie@linaro.org>
Date2016-09-25 11:10 +0200
Subject[PATCH] rtc: rtc-jz4740: remove unused function in rtc-jz4740.c
Message-ID<sldBE-4G0-1@gated-at.bofh.it>
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@linaro.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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web