diff options
| -rw-r--r-- | drivers/base/regmap/regcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index 409abd282c6c..afcfef838263 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c | |||
| @@ -119,7 +119,7 @@ int regcache_init(struct regmap *map) | |||
| 119 | if (!tmp_buf) | 119 | if (!tmp_buf) |
| 120 | return -ENOMEM; | 120 | return -ENOMEM; |
| 121 | map->reg_defaults = tmp_buf; | 121 | map->reg_defaults = tmp_buf; |
| 122 | } else { | 122 | } else if (map->num_reg_defaults_raw) { |
| 123 | /* Some devices such as PMICs don't have cache defaults, | 123 | /* Some devices such as PMICs don't have cache defaults, |
| 124 | * we cope with this by reading back the HW registers and | 124 | * we cope with this by reading back the HW registers and |
| 125 | * crafting the cache defaults by hand. | 125 | * crafting the cache defaults by hand. |
