Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118815
b: refs/heads/master
c: 29454f1
h: refs/heads/master
i:
  118813: 9e7da08
  118811: b6b771c
  118807: 339dc08
  118799: c11f0aa
  118783: e9cfd9d
v: v3
  • Loading branch information
Thomas Renninger authored and Len Brown committed Nov 8, 2008
1 parent ee777ec commit 468fc94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6766fec3669d5053b987e111afb348b885237bfc
refs/heads/master: 29454f17124c655236d2972dad21907e15ca294b
12 changes: 7 additions & 5 deletions trunk/drivers/misc/compal-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,14 @@ static int __init compal_init(void)

/* Register backlight stuff */

compalbl_device = backlight_device_register("compal-laptop", NULL, NULL,
&compalbl_ops);
if (IS_ERR(compalbl_device))
return PTR_ERR(compalbl_device);
if (!acpi_video_backlight_support()) {
compalbl_device = backlight_device_register("compal-laptop", NULL, NULL,
&compalbl_ops);
if (IS_ERR(compalbl_device))
return PTR_ERR(compalbl_device);

compalbl_device->props.max_brightness = COMPAL_LCD_LEVEL_MAX-1;
compalbl_device->props.max_brightness = COMPAL_LCD_LEVEL_MAX-1;
}

ret = platform_driver_register(&compal_driver);
if (ret)
Expand Down

0 comments on commit 468fc94

Please sign in to comment.