Browse Source

regmap: fix the warning about unused variable

The variable 'u64 *u64' should be only visible on 64-BIT platform.

Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Xiubo Li 9 years ago
parent
commit
19c04788f0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/base/regmap/regmap.c

+ 2 - 0
drivers/base/regmap/regmap.c

@@ -2581,7 +2581,9 @@ int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
 				 * we assume that the values are native
 				 * we assume that the values are native
 				 * endian.
 				 * endian.
 				 */
 				 */
+#ifdef CONFIG_64BIT
 				u64 *u64 = val;
 				u64 *u64 = val;
+#endif
 				u32 *u32 = val;
 				u32 *u32 = val;
 				u16 *u16 = val;
 				u16 *u16 = val;
 				u8 *u8 = val;
 				u8 *u8 = val;