From patchwork Wed Jan 16 12:45:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1987701 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 4D6933FC85 for ; Wed, 16 Jan 2013 12:45:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756957Ab3APMpS (ORCPT ); Wed, 16 Jan 2013 07:45:18 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:52082 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752748Ab3APMpR (ORCPT ); Wed, 16 Jan 2013 07:45:17 -0500 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r0GCjE1T006336; Wed, 16 Jan 2013 06:45:14 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r0GCjEI3009583; Wed, 16 Jan 2013 06:45:14 -0600 Received: from dlelxv22.itg.ti.com (172.17.1.197) by dfle73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.1.323.3; Wed, 16 Jan 2013 06:45:14 -0600 Received: from barack.emea.dhcp.ti.com (barack.emea.dhcp.ti.com [137.167.125.64]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id r0GCjAvB019940; Wed, 16 Jan 2013 06:45:12 -0600 From: Peter Ujfalusi To: Tomi Valkeinen , Florian Tobias Schandinat CC: Archit Taneja , , , , Andrew Morton Subject: [PATCH 1/3] OMAPDSS: Panel NEC: Set backlight type to remove boot time warning Date: Wed, 16 Jan 2013 13:45:07 +0100 Message-ID: <1358340309-8774-2-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1358340309-8774-1-git-send-email-peter.ujfalusi@ti.com> References: <1358340309-8774-1-git-send-email-peter.ujfalusi@ti.com> MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Fixes the following boot time warning: [ 2.230865] WARNING: at drivers/video/backlight/backlight.c:315 backlight_device_register+0x184/0x1f4() [ 2.240386] nec-8048: invalid backlight type We need to pass valid backlight type when the device is registered. Signed-off-by: Peter Ujfalusi --- drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c b/drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c index c4e9c2b..f43a343 100644 --- a/drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c +++ b/drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c @@ -132,6 +132,7 @@ static int nec_8048_panel_probe(struct omap_dss_device *dssdev) memset(&props, 0, sizeof(struct backlight_properties)); props.max_brightness = 255; + props.type = BACKLIGHT_RAW; bl = backlight_device_register("nec-8048", &dssdev->dev, dssdev, &nec_8048_bl_ops, &props);