OMAP: omap_device: use read_persistent_clock() instead of getnstimeofday()
commitd22926677f2244a6b68e7ea21d6c9338659c17aa
authorKevin Hilman <khilman@deeprootsystems.com>
Tue, 8 Dec 2009 23:34:23 +0000 (8 16:34 -0700)
committerpaul <paul@twilight.(none)>
Sat, 12 Dec 2009 00:00:44 +0000 (11 17:00 -0700)
treef90ca22cdb3728dad85c4afa07f6784003fd27e4
parent5f1b6ef76ff87bb531a9304b36658b8ffaa91b08
OMAP: omap_device: use read_persistent_clock() instead of getnstimeofday()

During suspend and resume, when omap_device deactivation and
activation is happening, the timekeeping subsystem has likely already
been suspended.  Thus getnstimeofday() will fail and trigger a WARN().

Use read_persistent_clock() instead of getnstimeofday() to avoid this.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/plat-omap/omap_device.c