Wan ZongShun 0a89b55364 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>
2010-08-11 08:59:06 -07:00
..
2010-08-05 13:26:17 +01:00
2010-08-05 13:26:17 +01:00
2010-05-27 09:12:41 -07:00
2009-09-23 07:39:46 -07:00
2009-02-11 14:25:36 -08:00
2009-02-05 12:56:46 -08:00
2010-06-29 15:29:31 -07:00
2009-09-23 07:39:43 -07:00
2009-04-01 08:59:24 -07:00
2010-06-16 18:05:05 +02:00
2010-08-05 13:26:17 +01:00
2009-09-23 07:39:43 -07:00
2008-10-20 08:52:41 -07:00
2009-09-23 07:39:43 -07:00
2009-04-02 01:05:32 +00:00
2009-09-23 07:39:43 -07:00
2008-11-21 01:24:38 -08:00
2008-11-14 16:37:54 -08:00
2009-12-16 07:20:00 -08:00