From patchwork Tue Mar 1 12:06:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maurus Cuelenaere X-Patchwork-Id: 598841 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 p21C5xvM004106 for ; Tue, 1 Mar 2011 12:06:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756335Ab1CAMGF (ORCPT ); Tue, 1 Mar 2011 07:06:05 -0500 Received: from mail-ey0-f174.google.com ([209.85.215.174]:52741 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756337Ab1CAMGE (ORCPT ); Tue, 1 Mar 2011 07:06:04 -0500 Received: by eyx24 with SMTP id 24so1629669eyx.19 for ; Tue, 01 Mar 2011 04:06:03 -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=7UjyMPgM6D+3E8hkFzEYHOmudg6bEtdOyHpXwA2wMGo=; b=bIy7WAnH3CJLsZSrcG9bGP2l2HQJyvzNNQ8pVeTmz4IcO/10FhUIsCxu+0DGb5nOa3 31HWKi/DciH4ZAclP7/cOBWIe1GcceJuiFCl3qyV/SRE4eq4DdM3DwOELnaNzmzMm8Fi 763DuEdNspAlbkcUp+wpWMFI5/G1qA1mrrkBw= 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=qtlcTSChZp4UaxW+m7BEsP4TOVmGI8ZTznlTXSVu3QJ2RdyHuv4bh2ybXvuka13WnN Dl87/zW32HEpEGej4y4dINjthI3RWghNyYspSCblHw0RGI3tGI4O1u0TwrO5nieuPXjp mn+xVcXCtDCloAisgfsdi9jvq1gluxMBY0BYU= Received: by 10.213.19.7 with SMTP id y7mr1805148eba.23.1298981163319; Tue, 01 Mar 2011 04:06:03 -0800 (PST) Received: from maurus-desktop (78-22-96-2.access.telenet.be [78.22.96.2]) by mx.google.com with ESMTPS id t50sm4126484eeh.12.2011.03.01.04.06.01 (version=SSLv3 cipher=OTHER); Tue, 01 Mar 2011 04:06:02 -0800 (PST) Received: by maurus-desktop (sSMTP sendmail emulation); Tue, 1 Mar 2011 13:06:01 +0100 Date: Tue, 1 Mar 2011 13:06:01 +0100 To: linux-fbdev@vger.kernel.org Cc: Lars-Peter Clausen Message-Id: <1d49e2b9aa2fa143c14a9782fd4e67cb50610ca8.1298980528.git.mcuelenaere@gmail.com> In-Reply-To: References: From: Maurus Cuelenaere Subject: [PATCH 3/6] FBDEV: JZ4740: Initialize framebuffer properly 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:05 +0000 (UTC) diff --git a/drivers/video/jz4740_fb.c b/drivers/video/jz4740_fb.c index cea7b7e..2f3ea57 100644 --- a/drivers/video/jz4740_fb.c +++ b/drivers/video/jz4740_fb.c @@ -707,16 +707,13 @@ static int __devinit jzfb_probe(struct platform_device *pdev) fb_alloc_cmap(&fb->cmap, 256, 0); - clk_enable(jzfb->ldclk); - jzfb->is_enabled = 1; - - writel(jzfb->framedesc->next, jzfb->base + JZ_REG_LCD_DA0); - fb->mode = NULL; jzfb_set_par(fb); jzfb_pins_operation(jzfb, REQUEST_PINS); + jzfb_blank(FB_BLANK_UNBLANK, fb); + ret = register_framebuffer(fb); if (ret) { dev_err(&pdev->dev, "Failed to register framebuffer: %d\n", ret); @@ -726,6 +723,7 @@ static int __devinit jzfb_probe(struct platform_device *pdev) return 0; err_free_devmem: + jzfb_blank(FB_BLANK_POWERDOWN, fb); jzfb_pins_operation(jzfb, FREE_PINS); fb_dealloc_cmap(&fb->cmap);