aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/wm8731.c2
-rw-r--r--sound/soc/codecs/wm8750.c2
-rw-r--r--sound/soc/codecs/wm8753.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index 5acf43ab104e..77880537a3cd 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -534,7 +534,7 @@ static int wm8731_init(struct snd_soc_device *socdev)
534 codec->set_bias_level = wm8731_set_bias_level; 534 codec->set_bias_level = wm8731_set_bias_level;
535 codec->dai = &wm8731_dai; 535 codec->dai = &wm8731_dai;
536 codec->num_dai = 1; 536 codec->num_dai = 1;
537 codec->reg_cache_size = sizeof(wm8731_reg); 537 codec->reg_cache_size = ARRAY_SIZE(wm8731_reg);
538 codec->reg_cache = kmemdup(wm8731_reg, sizeof(wm8731_reg), GFP_KERNEL); 538 codec->reg_cache = kmemdup(wm8731_reg, sizeof(wm8731_reg), GFP_KERNEL);
539 if (codec->reg_cache == NULL) 539 if (codec->reg_cache == NULL)
540 return -ENOMEM; 540 return -ENOMEM;
diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c
index 1f11ad24551a..1ae670a98c5c 100644
--- a/sound/soc/codecs/wm8750.c
+++ b/sound/soc/codecs/wm8750.c
@@ -798,7 +798,7 @@ static int wm8750_init(struct snd_soc_device *socdev)
798 codec->set_bias_level = wm8750_set_bias_level; 798 codec->set_bias_level = wm8750_set_bias_level;
799 codec->dai = &wm8750_dai; 799 codec->dai = &wm8750_dai;
800 codec->num_dai = 1; 800 codec->num_dai = 1;
801 codec->reg_cache_size = sizeof(wm8750_reg); 801 codec->reg_cache_size = ARRAY_SIZE(wm8750_reg);
802 codec->reg_cache = kmemdup(wm8750_reg, sizeof(wm8750_reg), GFP_KERNEL); 802 codec->reg_cache = kmemdup(wm8750_reg, sizeof(wm8750_reg), GFP_KERNEL);
803 if (codec->reg_cache == NULL) 803 if (codec->reg_cache == NULL)
804 return -ENOMEM; 804 return -ENOMEM;
diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c
index c32e6326be6c..285c5eaefe02 100644
--- a/sound/soc/codecs/wm8753.c
+++ b/sound/soc/codecs/wm8753.c
@@ -1557,7 +1557,7 @@ static int wm8753_init(struct snd_soc_device *socdev)
1557 codec->set_bias_level = wm8753_set_bias_level; 1557 codec->set_bias_level = wm8753_set_bias_level;
1558 codec->dai = wm8753_dai; 1558 codec->dai = wm8753_dai;
1559 codec->num_dai = 2; 1559 codec->num_dai = 2;
1560 codec->reg_cache_size = sizeof(wm8753_reg); 1560 codec->reg_cache_size = ARRAY_SIZE(wm8753_reg);
1561 codec->reg_cache = kmemdup(wm8753_reg, sizeof(wm8753_reg), GFP_KERNEL); 1561 codec->reg_cache = kmemdup(wm8753_reg, sizeof(wm8753_reg), GFP_KERNEL);
1562 1562
1563 if (codec->reg_cache == NULL) 1563 if (codec->reg_cache == NULL)