bbswitch: Set the result value if result type is an integer

This commit is contained in:
Lekensteyn 2011-12-12 21:26:09 +01:00
parent 619d95e7d7
commit 398c8d2a7b

View File

@ -63,6 +63,7 @@ static int acpi_optimus_dsm(acpi_handle handle, int func, char *args,
obj = (union acpi_object *)output.pointer;
if (obj->type == ACPI_TYPE_INTEGER)
*result = obj->integer.value;
// REVS (revision number) not found, possibly not an Optimus?
if (obj->integer.value == 0x80000002) {
printk(KERN_INFO "bbswitch: Optimus function not found\n");