]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP: change get_context_loss_count ret value to int
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 9 Jun 2011 13:56:23 +0000 (16:56 +0300)
committerTony Lindgren <tony@atomide.com>
Sat, 5 Nov 2011 00:41:07 +0000 (17:41 -0700)
commit53fa0d1cc6c46737b5e710e976df05b42b89cafb
treeb37a3d19f99a0c76d6399337536f7d19e7aac219
parent46b23d213b27dd3a6a1498d5cc7d26e2cc9eebd7
ARM: OMAP: change get_context_loss_count ret value to int

get_context_loss_count functions return context loss count as u32, and
zero means an error. However, zero is also returned when context has
never been lost and could also be returned when the context loss count
has wrapped and goes to zero.

Change the functions to return an int, with negative value meaning an
error.

OMAP HSMMC code uses omap_pm_get_dev_context_loss_count(), but as the
hsmmc code handles the returned value as an int, with negative value
meaning an error, this patch actually fixes hsmmc code also.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Kevin Hilman <khilman@ti.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
[tony@atomide.com: updated to fix a warning with recent dmtimer changes]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/powerdomain.c
arch/arm/mach-omap2/powerdomain.h
arch/arm/plat-omap/include/plat/dmtimer.h
arch/arm/plat-omap/include/plat/omap-pm.h
arch/arm/plat-omap/include/plat/omap_device.h
arch/arm/plat-omap/include/plat/omap_hwmod.h
arch/arm/plat-omap/omap-pm-noop.c
arch/arm/plat-omap/omap_device.c