From patchwork Mon May 30 03:23:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 829052 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 p4U3IcRP027864 for ; Mon, 30 May 2011 03:18:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753275Ab1E3DSi (ORCPT ); Sun, 29 May 2011 23:18:38 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:35576 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751929Ab1E3DSh (ORCPT ); Sun, 29 May 2011 23:18:37 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id BD2F82AC085; Mon, 30 May 2011 03:18:36 +0000 (UTC) From: Mike Frysinger To: linux-fbdev@vger.kernel.org, Paul Mundt Cc: uclinux-dist-devel@blackfin.uclinux.org, Steven Miao Subject: [PATCH] fbdev: bf537-lq035: add missing blacklight properties type Date: Sun, 29 May 2011 23:23:36 -0400 Message-Id: <1306725816-11120-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.5.rc3 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]); Mon, 30 May 2011 03:18:38 +0000 (UTC) From: Steven Miao Seems this new field was missed, probably due to this driver being merged around the time this new backlight field was being added. At any rate, initial the type field to avoid ugly WARN() dumps. Signed-off-by: Steven Miao Signed-off-by: Mike Frysinger --- drivers/video/bf537-lq035.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/video/bf537-lq035.c b/drivers/video/bf537-lq035.c index 47c21fb..bea53c1 100644 --- a/drivers/video/bf537-lq035.c +++ b/drivers/video/bf537-lq035.c @@ -789,6 +789,7 @@ static int __devinit bfin_lq035_probe(struct platform_device *pdev) i2c_add_driver(&ad5280_driver); memset(&props, 0, sizeof(props)); + props.type = BACKLIGHT_RAW; props.max_brightness = MAX_BRIGHENESS; bl_dev = backlight_device_register("bf537-bl", NULL, NULL, &bfin_lq035fb_bl_ops, &props);