regmap: missing case statement
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 12 Dec 2015 12:59:43 +0000 (15:59 +0300)
committerMark Brown <broonie@kernel.org>
Sat, 12 Dec 2015 22:36:26 +0000 (22:36 +0000)
This new code is unreachable.  Presumably there was supposed to be a
case statement there similar to the earlier code.

Fixes: afcc00b91f18 ('regmap: add 64-bit mode support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c

index 9c167e73fdcd052f3468af4ba4393b26401ce783..d27fe2f0182ed9118f4e8afc1f340972797e6ee0 100644 (file)
@@ -844,6 +844,7 @@ struct regmap *__regmap_init(struct device *dev,
                }
                break;
 #ifdef CONFIG_64BIT
+       case 64:
                switch (val_endian) {
                case REGMAP_ENDIAN_BIG:
                        map->format.format_val = regmap_format_64_be;