aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiubo Li <lixiubo@cmss.chinamobile.com>2015-12-09 04:11:53 -0500
committerMark Brown <broonie@kernel.org>2015-12-09 10:11:03 -0500
commit19c04788f0e0ef778df39cdeaf8e9889d3020894 (patch)
treed4312ef0f37afcc1ea4888e4d15b7e1ee4ebc59a
parentafcc00b91f1865f6d0bbdb687dd642ce8a3c3c9e (diff)
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>
-rw-r--r--drivers/base/regmap/regmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 1791180dca02..a0d30a0fd8cf 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -2581,7 +2581,9 @@ int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
2581 * we assume that the values are native 2581 * we assume that the values are native
2582 * endian. 2582 * endian.
2583 */ 2583 */
2584#ifdef CONFIG_64BIT
2584 u64 *u64 = val; 2585 u64 *u64 = val;
2586#endif
2585 u32 *u32 = val; 2587 u32 *u32 = val;
2586 u16 *u16 = val; 2588 u16 *u16 = val;
2587 u8 *u8 = val; 2589 u8 *u8 = val;