[media] coda: initialize SRAM on probe
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 23 Jan 2015 16:51:23 +0000 (13:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Feb 2015 12:23:16 +0000 (10:23 -0200)
Zeroing the SRAM on probe helps with debugging SRAM contents.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-common.c

index d26794fa74bfd50f44a2d3b311ffb7e6a100a579..5b3fd44ad4ccd3a44637d3e6fab4642848f44f70 100644 (file)
@@ -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,