From patchwork Tue Dec 21 10:46:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 424121 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 oBLAkT03009606 for ; Tue, 21 Dec 2010 10:46:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751608Ab0LUKq2 (ORCPT ); Tue, 21 Dec 2010 05:46:28 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:61427 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751058Ab0LUKq2 (ORCPT ); Tue, 21 Dec 2010 05:46:28 -0500 Received: from axis700.grange (pD9EB91F3.dip0.t-ipconnect.de [217.235.145.243]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MVqDE-1PtK3v03Ym-00Xdn9; Tue, 21 Dec 2010 11:46:27 +0100 Received: by axis700.grange (Postfix, from userid 1000) id AF7B7E6A77; Tue, 21 Dec 2010 11:46:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id A48141067BC; Tue, 21 Dec 2010 11:46:26 +0100 (CET) Date: Tue, 21 Dec 2010 11:46:26 +0100 (CET) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-fbdev@vger.kernel.org cc: linux-sh@vger.kernel.org Subject: [PATCH 1/3] fbdev: sh-mobile: restore display size configuration Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:sAi8Laf9oJaH4u3m3LYYShjncpE+hAALxLsIW3Q2qvm HoLpDp1V1L7OPLI7JAk9NhrQBpnMznElf6KpsmWCMf8KcwL4FT fcYRFWkyv6oulSEzvfTs+A5peyhPnUHkxTbEih2yaVg9M9JEu/ AULSwaCFb8+pooFhcrheNVvlQdRUwxy5/qpwmtsasXLIB7r+HA 7YvyfOqvV58BMjzm3Y9zldQ30vReFnKwWgdCzv8CNU= 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.3 (demeter1.kernel.org [140.211.167.41]); Tue, 21 Dec 2010 10:46:30 +0000 (UTC) diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index b02d97a..257ed0c 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c @@ -1238,12 +1238,14 @@ static int __devinit sh_mobile_lcdc_probe(struct platform_device *pdev) mode = &default_720p; num_cfg = 1; } else { - num_cfg = ch->cfg.num_cfg; + num_cfg = cfg->num_cfg; } fb_videomode_to_modelist(mode, num_cfg, &info->modelist); fb_videomode_to_var(var, mode); + var->width = cfg->lcd_size_cfg.width; + var->height = cfg->lcd_size_cfg.height; /* Default Y virtual resolution is 2x panel size */ var->yres_virtual = var->yres * 2; var->activate = FB_ACTIVATE_NOW;