From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp6-g21.free.fr ([2a01:e0c:1:1599::15]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1RxHxo-0004pf-3w for barebox@lists.infradead.org; Tue, 14 Feb 2012 12:58:33 +0000 From: Robert Jarzmik Date: Tue, 14 Feb 2012 13:58:14 +0100 Message-Id: <1329224294-31475-2-git-send-email-robert.jarzmik@free.fr> In-Reply-To: <1329224294-31475-1-git-send-email-robert.jarzmik@free.fr> References: <877gzw445i.fsf@free.fr> <1329224294-31475-1-git-send-email-robert.jarzmik@free.fr> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH V2 2/2] drivers/video: remove pxafb enable on load To: barebox@lists.infradead.org As pxafb can rely on a PWM to control backlight, and because driver dependencies are hard to deal with, remove automatic enable of PXAFB on probe. The user should in its environment do a : - fb0.enable=1 This way, the PWM has been probed and is ready to work, and the pxafb backlight control works. Signed-off-by: Robert Jarzmik --- arch/arm/mach-pxa/include/mach/pxafb.h | 1 - drivers/video/pxa.c | 3 --- 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-pxa/include/mach/pxafb.h b/arch/arm/mach-pxa/include/mach/pxafb.h index 1730fbf..23cbea9 100644 --- a/arch/arm/mach-pxa/include/mach/pxafb.h +++ b/arch/arm/mach-pxa/include/mach/pxafb.h @@ -64,7 +64,6 @@ struct pxafb_videomode { struct pxafb_platform_data { struct pxafb_videomode *mode; unsigned int lcd_conn; - int enable_on_load; /** force a memory area to be used, else NULL for dynamic allocation */ void *framebuffer; diff --git a/drivers/video/pxa.c b/drivers/video/pxa.c index ddd7087..900ae80 100644 --- a/drivers/video/pxa.c +++ b/drivers/video/pxa.c @@ -538,9 +538,6 @@ static int pxafb_probe(struct device_d *dev) return ret; } - if (pdata->enable_on_load) - info->fbops->fb_enable(info); - return 0; } -- 1.7.5.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox