[PATCH] rtc: jz4740 fix hwclock give time out

Xiangfu Liu xiangfu at sharism.cc
Fri Mar 16 06:11:43 EDT 2012


---
Hi

This patch fix the hwclock give time out error. I am not sure is this patch good
please review. give some feedback. thanks

Should I apply this patch to qi-kernel.git v3.2 branch?

More info:
  http://www.linux-mips.org/archives/linux-mips/2011-12/msg00191.html

Xiangfu

  drivers/rtc/rtc-jz4740.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/rtc/rtc-jz4740.c
index b647363..50c5df0 100644
--- a/drivers/rtc/rtc-jz4740.c
+++ b/drivers/rtc/rtc-jz4740.c
@@ -280,6 +280,8 @@ static int __devinit jz4740_rtc_probe(struct platform_device *pdev)
  		}
  	}
  
+	jz4740_rtc_ctrl_set_bits(rtc, JZ_RTC_CTRL_1HZ_IRQ, 1);
+
  	return 0;
  
  err_free_irq:
-- 
1.7.5.4

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Attached Message Part
URL: <http://lists.en.qi-hardware.com/pipermail/jz47xx-kernel/attachments/20120316/edb20f52/attachment.asc>


More information about the jz47xx-kernel mailing list


interactive