From 16cb15f6a01b5d153637a3a46cd3a23e97d888b3 Mon Sep 17 00:00:00 2001
From: Pawel Osciak
Date: Wed, 29 Jul 2009 15:02:10 -0700
Subject: [PATCH] --- yaml --- r: 156037 b: refs/heads/master c:
c42b110caeb128819104d057acdaa1ae564b7c8d h: refs/heads/master i: 156035:
1e6ce5a472a0b153fcc48082da9890d8fdac7402 v: v3
---
[refs] | 2 +-
trunk/drivers/video/s3c-fb.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/[refs] b/[refs]
index 6eee5989ebf8..41ce76926bb7 100644
--- a/[refs]
+++ b/[refs]
@@ -1,2 +1,2 @@
---
-refs/heads/master: 3d768213a6c34a27fac1804143da8cf18b8b175f
+refs/heads/master: c42b110caeb128819104d057acdaa1ae564b7c8d
diff --git a/trunk/drivers/video/s3c-fb.c b/trunk/drivers/video/s3c-fb.c
index bb63c07e13de..5a72083dc67c 100644
--- a/trunk/drivers/video/s3c-fb.c
+++ b/trunk/drivers/video/s3c-fb.c
@@ -964,7 +964,7 @@ static int __devexit s3c_fb_remove(struct platform_device *pdev)
struct s3c_fb *sfb = platform_get_drvdata(pdev);
int win;
- for (win = 0; win <= S3C_FB_MAX_WIN; win++)
+ for (win = 0; win < S3C_FB_MAX_WIN; win++)
if (sfb->windows[win])
s3c_fb_release_win(sfb, sfb->windows[win]);
@@ -988,7 +988,7 @@ static int s3c_fb_suspend(struct platform_device *pdev, pm_message_t state)
struct s3c_fb_win *win;
int win_no;
- for (win_no = S3C_FB_MAX_WIN; win_no >= 0; win_no--) {
+ for (win_no = S3C_FB_MAX_WIN - 1; win_no >= 0; win_no--) {
win = sfb->windows[win_no];
if (!win)
continue;