Skip to contentSkip to conversation

s5p-jpeg: exynos3250: fix erroneous reset procedure

PATCH New Jacek Anaszewski 1 participant 1 message Feb 25, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 .../media/platform/s5p-jpeg/jpeg-hw-exynos3250.c   |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c +1 -1
index e8c2cad..0974b9a 100644
@@ -20,7 +20,7 @@
 
 void exynos3250_jpeg_reset(void __iomem *regs)
 {
-	u32 reg = 0;
+	u32 reg = 1;
 	int count = 1000;
 
 	writel(1, regs + EXYNOS3250_SW_RESET);
Signature · 1 line
1.7.9.5