summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacek Anaszewski <j.anaszewski@samsung.com>2014-09-01 10:05:52 -0300
committerJacek Anaszewski <j.anaszewski@samsung.com>2014-11-05 16:05:33 +0100
commita6382790da6d6138a72d566ac93e8ad21fc391e0 (patch)
tree88c36ab1663333c65f6c9796d8a3af94c4669e06
parent6620f2b71e05af875e0919242c97fe7d420de1c8 (diff)
downloadlinux-3.10-a6382790da6d6138a72d566ac93e8ad21fc391e0.tar.gz
linux-3.10-a6382790da6d6138a72d566ac93e8ad21fc391e0.tar.bz2
linux-3.10-a6382790da6d6138a72d566ac93e8ad21fc391e0.zip
[media] s5p-jpeg: fix HUF_TBL_EN bit clearing path
Use proper bitwise operator while clearing HUF_TBL_EN bit. Change-Id: Ic78dd26168ffa6124d61f8cb9549339f05cff0d9 Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c b/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c
index d9ce40f8fbb..e51c078360f 100644
--- a/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c
+++ b/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c
@@ -182,7 +182,7 @@ void exynos4_jpeg_set_huf_table_enable(void __iomem *base, int value)
writel(reg | EXYNOS4_HUF_TBL_EN,
base + EXYNOS4_JPEG_CNTL_REG);
else
- writel(reg | ~EXYNOS4_HUF_TBL_EN,
+ writel(reg & ~EXYNOS4_HUF_TBL_EN,
base + EXYNOS4_JPEG_CNTL_REG);
}