]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - sound/soc/codecs/rt5645.c
Merge tag 'for-linus-20180616' of git://git.kernel.dk/linux-block
[linux.git] / sound / soc / codecs / rt5645.c
index 712384581ebf3d2f5307936bf0ebf3a6ef3f1210..1dc70f452c1b9505d8e0e2952f46fcf2982195c4 100644 (file)
@@ -3449,8 +3449,9 @@ static int rt5645_probe(struct snd_soc_component *component)
        if (rt5645->pdata.long_name)
                component->card->long_name = rt5645->pdata.long_name;
 
-       rt5645->eq_param = devm_kzalloc(component->dev,
-               RT5645_HWEQ_NUM * sizeof(struct rt5645_eq_param_s), GFP_KERNEL);
+       rt5645->eq_param = devm_kcalloc(component->dev,
+               RT5645_HWEQ_NUM, sizeof(struct rt5645_eq_param_s),
+               GFP_KERNEL);
 
        return 0;
 }