ARM: OMAP2+: powerdomain: avoid testing whether an unsigned char is less than 0
authorPaul Walmsley <paul@pwsan.com>
Mon, 1 Apr 2013 02:22:22 +0000 (20:22 -0600)
committerPaul Walmsley <paul@pwsan.com>
Mon, 1 Apr 2013 02:22:22 +0000 (20:22 -0600)
_pwrdm_save_clkdm_state_and_activate() tried to test one of its
unsigned arguments to determine whether it was less than zero.  Fix by
moving the error test to the caller.

Reported-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/powerdomain.c

Simple merge