summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2015-01-23 13:51:23 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-02-02 10:23:16 -0200
commit811a6934c22e19f2bc9b4a280e8626af1a098721 (patch)
tree0d665f7e515e4e535eec330bdf9eb77cac1e4ee5
parent1c2f6a9983a7b079c4bada2bb43c336bb7b8abb9 (diff)
downloadlinux-811a6934c22e19f2bc9b4a280e8626af1a098721.tar.gz
linux-811a6934c22e19f2bc9b4a280e8626af1a098721.tar.bz2
linux-811a6934c22e19f2bc9b4a280e8626af1a098721.zip
[media] coda: initialize SRAM on probe
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>
-rw-r--r--drivers/media/platform/coda/coda-common.c1
1 files changed, 1 insertions, 0 deletions
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,