From patchwork Mon May 24 07:53:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 101829 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4O7rHqx001927 for ; Mon, 24 May 2010 07:53:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751188Ab0EXHxQ (ORCPT ); Mon, 24 May 2010 03:53:16 -0400 Received: from mail.gmx.net ([213.165.64.20]:40348 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750889Ab0EXHxQ (ORCPT ); Mon, 24 May 2010 03:53:16 -0400 Received: (qmail invoked by alias); 24 May 2010 07:53:14 -0000 Received: from p57BD1FF5.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.31.245] by mail.gmx.net (mp021) with SMTP; 24 May 2010 09:53:14 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX184tjYE0To4vhI8PARz0U9RMVyWHwaYS9dUOMpfZp ilZY4Us04PiI8a Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1OGSTU-0003wT-Ts for linux-sh@vger.kernel.org; Mon, 24 May 2010 09:53:24 +0200 Date: Mon, 24 May 2010 09:53:24 +0200 (CEST) From: Guennadi Liakhovetski To: "linux-sh@vger.kernel.org" Subject: [PATCH] fbdev: fix erroneous index in drivers/video/sh_mobile_lcdcfb.c Message-ID: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 24 May 2010 07:53:21 +0000 (UTC) diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index e8c7699..12c451a 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c @@ -991,13 +991,13 @@ static int __devinit sh_mobile_lcdc_probe(struct platform_device *pdev) priv->ch[j].lcdc = priv; memcpy(&priv->ch[j].cfg, &pdata->ch[i], sizeof(pdata->ch[i])); - error = sh_mobile_lcdc_check_interface(&priv->ch[i]); + error = sh_mobile_lcdc_check_interface(&priv->ch[j]); if (error) { dev_err(&pdev->dev, "unsupported interface type\n"); goto err1; } - init_waitqueue_head(&priv->ch[i].frame_end_wait); - init_completion(&priv->ch[i].vsync_completion); + init_waitqueue_head(&priv->ch[j].frame_end_wait); + init_completion(&priv->ch[j].vsync_completion); priv->ch[j].pan_offset = 0; switch (pdata->ch[i].chan) {