]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media: s5p-mfc: fix sparse warnings
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 28 May 2015 11:11:47 +0000 (08:11 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 5 Jun 2015 09:37:24 +0000 (06:37 -0300)
commit20cb2025c08bbc2c4c5a16e2267a2aa1b09d8556
tree334fbf249446ff981fca6b1cd3f3bad417c70bc4
parent11bae38cb83a2e444d97ca0481e7b610011b1172
[media] media: s5p-mfc: fix sparse warnings

Commits 03b20d9b27465462b3780d3dea90ee6820f260fd and
a656b32a1839667304b0944819de05efe97eddf0 ("media: s5p-mfc: fix broken
pointer cast on 64bit arch") fixed issue with lossy cast on 64-bit
architectures. However it also removed __iomem attribute from that cast.
This leads to sparse warnings. This patch fixes those warnings by adding
__iomem cast in case of v6+ code version and replacing readl/writel by
simple u32 load/store operations in case of v5 code (which is called on
system memory allocated by dma_alloc_coherent() instead of io registers).

Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c