]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s5p-jpeg: exynos3250: fix erroneous reset procedure
authorJacek Anaszewski <j.anaszewski@samsung.com>
Wed, 25 Feb 2015 11:53:49 +0000 (08:53 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Mar 2015 11:59:34 +0000 (08:59 -0300)
commit041d6db91aff8455f4071b21225ae0632937a4bf
tree4a0e94587ceb9bb9621fe6855df371b1ae439743
parentadcb6dfb6de0699bfc3ba7cc90b9f67cac282dac
[media] s5p-jpeg: exynos3250: fix erroneous reset procedure

The first while loop in the function exynos3250_jpeg_reset had no chance
to be executed because the reg variable was initialized to 0.
Initialize reg variable to 1 to fix the issue.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Reported-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c