regmap: Fix signed/unsigned comparison
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Tue, 27 Sep 2011 10:25:04 +0000 (11:25 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 27 Sep 2011 12:27:09 +0000 (13:27 +0100)
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regcache-indexed.c

index ff8b44ce044be5afeef626c36362b442ed74913f..268497aee46dac4009729e692c0a4bd5feb85b37 100644 (file)
@@ -41,7 +41,7 @@ static int regcache_indexed_write(struct regmap *map, unsigned int reg,
 
 static int regcache_indexed_sync(struct regmap *map)
 {
-       int i;
+       unsigned int i;
        int ret;
 
        for (i = 0; i < map->num_reg_defaults; i++) {