Message ID | 1474794449-26185-1-git-send-email-baoyou.xie@linaro.org |
---|---|
State | New |
Headers | show |
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;
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(-) -- 2.7.4