eeepc-laptop: enable camera by default

If we leave the camera disabled by default, userspace programs (e.g.
Skype, Cheese) leave the user out in the cold saying that the machine
"has no camera." Therefore, it's better to enable camera by default and
let people who really don't want it just disable the thing.

To reduce power usage you should enable USB autosuspend:
echo -n auto > /sys/bus/usb/drivers/uvcvideo/*:*/../power/level

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Pekka Enberg and committed by
Len Brown
cede2cb6 57599cc9

+12
+12
drivers/platform/x86/eeepc-laptop.c
··· 321 321 .set_block = eeepc_rfkill_set, 322 322 }; 323 323 324 + static void __init eeepc_enable_camera(void) 325 + { 326 + /* 327 + * If the following call to set_acpi() fails, it's because there's no 328 + * camera so we can ignore the error. 329 + */ 330 + set_acpi(CM_ASL_CAMERA, 1); 331 + } 332 + 324 333 /* 325 334 * Sys helpers 326 335 */ ··· 992 983 result = eeepc_hwmon_init(dev); 993 984 if (result) 994 985 goto fail_hwmon; 986 + 987 + eeepc_enable_camera(); 988 + 995 989 /* Register platform stuff */ 996 990 result = platform_driver_register(&platform_driver); 997 991 if (result)