From: Amit Kucheria Date: Wed, 21 Oct 2009 11:49:22 +0000 (+0300) Subject: mfd: Fix more undefined twl4030-power resconfig value checks X-Git-Tag: v2.6.33-rc1~285^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53cf9a605d75877550c1b9793d7e994401d08eb7;p=pandora-kernel.git mfd: Fix more undefined twl4030-power resconfig value checks Based on Aaro's previous fix, this needs to be fixed for the newly added remap_off and remap_sleep resources as well. 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 Signed-off-by: Amit Kucheria Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed