From: Wan ZongShun Date: Wed, 11 Aug 2010 01:02:05 +0000 (-0700) Subject: nuc900/rtc: change the waiting for device ready implement X-Git-Tag: v2.6.36-rc1~217 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a89b55364e0a4fd4be9bc2c9a697f9b027eb395;p=pandora-kernel.git nuc900/rtc: change the waiting for device ready implement - add an mdelay(1) to the polling loop to cause less frequent access to the hardware register. - change the return value from ENODEV to EPERM if the loop timed out. I think the 'Operation not permitted' description is more suitable for the meaning of 'check_rtc_access_enable()' function, it just be used to judge rtc access operation is permitted or not. Signed-off-by: Wan ZongShun Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed