From: Aaro Koskinen Date: Mon, 19 Oct 2009 19:24:02 +0000 (+0200) Subject: mfd: fix undefined twl4030-power resconfig value checks X-Git-Tag: v2.6.33-rc1~285^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56baa667973e53d6d38af2ad3731d558566d818b;p=pandora-kernel.git mfd: fix undefined twl4030-power resconfig value checks The code tries to skip values initialized with -1, but since the values are unsigned the comparison is always true. The patch eliminates the following compiler warnings: drivers/mfd/twl4030-power.c: In function 'twl4030_configure_resource': drivers/mfd/twl4030-power.c:338: warning: comparison is always true due to limited range of data type drivers/mfd/twl4030-power.c:358: warning: comparison is always true due to limited range of data type drivers/mfd/twl4030-power.c:363: warning: comparison is always true due to limited range of data type Signed-off-by: Aaro Koskinen Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed