From patchwork Tue Mar 1 12:05:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maurus Cuelenaere X-Patchwork-Id: 598831 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p21C5xvL004106 for ; Tue, 1 Mar 2011 12:06:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756336Ab1CAMGD (ORCPT ); Tue, 1 Mar 2011 07:06:03 -0500 Received: from mail-ey0-f174.google.com ([209.85.215.174]:38915 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756333Ab1CAMGD (ORCPT ); Tue, 1 Mar 2011 07:06:03 -0500 Received: by eyx24 with SMTP id 24so1629655eyx.19 for ; Tue, 01 Mar 2011 04:06:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:to:cc:message-id:in-reply-to:references :from:subject; bh=P65jx1a0/VX3Fe8SaRircWHislNRwnPExXaS7tl/8Zk=; b=Q7uqvjNFsokgQIlrlyOjYH900WXr1ROfvGnlQmotC3sxQ1b0ZOFB4wrcbUGlXFZFlx c/TwQmiZTeeD6eEzEfCFPtYubPzc8EkTlL3icLJ0d83iDjQ1qbvMESO0JpQ6kOQl4f/W sN7PoUirTf82xHo1h/biAC00GFGXCu4R2u5Xo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:message-id:in-reply-to:references:from:subject; b=M0RmJrXrnU8VGQtBjEClYWf38cYngPBw0iwKtdLrcREtNcj1Jf0a7CKq3tw8oX8EAg FDENz4I/GIh2o9Nv0b/zUF1ltBW2I9dWGNHVsf9XgotKa88BJ0znP3dxy8E18hi/1DI3 gd5yPnXAHUd9cF4BZU4LU9Y/ZV0JQXBjCaECE= Received: by 10.213.3.153 with SMTP id 25mr2177342ebn.44.1298981161046; Tue, 01 Mar 2011 04:06:01 -0800 (PST) Received: from maurus-desktop (78-22-96-2.access.telenet.be [78.22.96.2]) by mx.google.com with ESMTPS id q52sm4131360eei.15.2011.03.01.04.05.59 (version=SSLv3 cipher=OTHER); Tue, 01 Mar 2011 04:06:00 -0800 (PST) Received: by maurus-desktop (sSMTP sendmail emulation); Tue, 1 Mar 2011 13:05:57 +0100 Date: Tue, 1 Mar 2011 13:05:57 +0100 To: linux-fbdev@vger.kernel.org Cc: Lars-Peter Clausen Message-Id: <80cfeb81c3b4bae96f8ade317a08566c87493578.1298980528.git.mcuelenaere@gmail.com> In-Reply-To: References: From: Maurus Cuelenaere Subject: [PATCH 2/6] FBDEV: JZ4740: Initialize jzfb->fb earlier Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 01 Mar 2011 12:06:04 +0000 (UTC) diff --git a/drivers/video/jz4740_fb.c b/drivers/video/jz4740_fb.c index 65741d0..cea7b7e 100644 --- a/drivers/video/jz4740_fb.c +++ b/drivers/video/jz4740_fb.c @@ -654,6 +654,7 @@ static int __devinit jzfb_probe(struct platform_device *pdev) fb->flags = FBINFO_DEFAULT; jzfb = fb->par; + jzfb->fb = fb; jzfb->pdev = pdev; jzfb->pdata = pdata; jzfb->mem = mem; @@ -722,8 +723,6 @@ static int __devinit jzfb_probe(struct platform_device *pdev) goto err_free_devmem; } - jzfb->fb = fb; - return 0; err_free_devmem: