treewide: devm_kzalloc() -> devm_kcalloc()
[sfrench/cifs-2.6.git] / sound / soc / codecs / hdmi-codec.c
index 6fa11888672d4ca0c60096205c45e52f647f9ab8..38e4a8515709743c75befa77addca1b491c7979b 100644 (file)
@@ -771,7 +771,7 @@ static int hdmi_codec_probe(struct platform_device *pdev)
        hcp->hcd = *hcd;
        mutex_init(&hcp->current_stream_lock);
 
-       hcp->daidrv = devm_kzalloc(dev, dai_count * sizeof(*hcp->daidrv),
+       hcp->daidrv = devm_kcalloc(dev, dai_count, sizeof(*hcp->daidrv),
                                   GFP_KERNEL);
        if (!hcp->daidrv)
                return -ENOMEM;