Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1490856 > unrolled thread
| Started by | Baoyou Xie <baoyou.xie@linaro.org> |
|---|---|
| First post | 2016-09-25 11:10 +0200 |
| Last post | 2016-09-25 11:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] rtc: rtc-jz4740: remove unused function in rtc-jz4740.c Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-25 11:10 +0200
| From | Baoyou Xie <baoyou.xie@linaro.org> |
|---|---|
| Date | 2016-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
Back to top | Article view | linux.kernel
csiph-web