From: Philipp Zabel Date: Fri, 23 Jan 2015 16:51:23 +0000 (-0300) Subject: [media] coda: initialize SRAM on probe X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=811a6934c22e19f2bc9b4a280e8626af1a098721;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [media] coda: initialize SRAM on probe Zeroing the SRAM on probe helps with debugging SRAM contents. Signed-off-by: Philipp Zabel Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index d26794fa74bf..5b3fd44ad4cc 100644 --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c @@ -2174,6 +2174,7 @@ static int coda_probe(struct platform_device *pdev) if (!dev->iram.vaddr) { dev_warn(&pdev->dev, "unable to alloc iram\n"); } else { + memset(dev->iram.vaddr, 0, dev->iram.size); dev->iram.blob.data = dev->iram.vaddr; dev->iram.blob.size = dev->iram.size; dev->iram.dentry = debugfs_create_blob("iram", 0644,