Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154207
b: refs/heads/master
c: cede2cb
h: refs/heads/master
i:
  154205: 7830c41
  154203: 6cc8974
  154199: 7ad6cf5
  154191: 008147e
  154175: dced0a7
v: v3
  • Loading branch information
Pekka Enberg authored and Len Brown committed Jun 24, 2009
1 parent 697b3cd commit 25a0816
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57599cc997b81a7c4f764693a7316886a72067fe
refs/heads/master: cede2cb6ee9b0ddaa3dbc9939418ff177a831600
12 changes: 12 additions & 0 deletions trunk/drivers/platform/x86/eeepc-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,15 @@ static const struct rfkill_ops eeepc_rfkill_ops = {
.set_block = eeepc_rfkill_set,
};

static void __init eeepc_enable_camera(void)
{
/*
* If the following call to set_acpi() fails, it's because there's no
* camera so we can ignore the error.
*/
set_acpi(CM_ASL_CAMERA, 1);
}

/*
* Sys helpers
*/
Expand Down Expand Up @@ -983,6 +992,9 @@ static int __init eeepc_laptop_init(void)
result = eeepc_hwmon_init(dev);
if (result)
goto fail_hwmon;

eeepc_enable_camera();

/* Register platform stuff */
result = platform_driver_register(&platform_driver);
if (result)
Expand Down

0 comments on commit 25a0816

Please sign in to comment.