summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-ds1305.c
diff options
context:
space:
mode:
authorWan ZongShun <mcuos.com@gmail.com>2010-08-10 18:02:05 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-11 08:59:06 -0700
commit0a89b55364e0a4fd4be9bc2c9a697f9b027eb395 (patch)
tree6586428d02fe9365201eb28518d93ea27aa0b5da /drivers/rtc/rtc-ds1305.c
parent5fc79d85d2ab7ce144bc75e06cab58126249afbb (diff)
downloadblackbird-op-linux-0a89b55364e0a4fd4be9bc2c9a697f9b027eb395.tar.gz
blackbird-op-linux-0a89b55364e0a4fd4be9bc2c9a697f9b027eb395.zip
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 <mcuos.com@gmail.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-ds1305.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud