Skip to content

Commit

Permalink
fbdev: bf537-lq035: add missing blacklight properties type
Browse files Browse the repository at this point in the history
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 <realmz6@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Steven Miao authored and Paul Mundt committed Jun 2, 2011
1 parent 1bae852 commit 70f289d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/bf537-lq035.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 70f289d

Please sign in to comment.