Revert "ACPI: sysfs: validate return type of _STR method"
This reverts commit 88217cab8a
.
This commit is contained in:
parent
b750c5481a
commit
0123b370c9
1 changed files with 2 additions and 3 deletions
|
@ -533,9 +533,8 @@ int acpi_device_setup_files(struct acpi_device *dev)
|
||||||
* If device has _STR, 'description' file is created
|
* If device has _STR, 'description' file is created
|
||||||
*/
|
*/
|
||||||
if (acpi_has_method(dev->handle, "_STR")) {
|
if (acpi_has_method(dev->handle, "_STR")) {
|
||||||
status = acpi_evaluate_object_typed(dev->handle, "_STR",
|
status = acpi_evaluate_object(dev->handle, "_STR",
|
||||||
NULL, &buffer,
|
NULL, &buffer);
|
||||||
ACPI_TYPE_BUFFER);
|
|
||||||
if (ACPI_FAILURE(status))
|
if (ACPI_FAILURE(status))
|
||||||
buffer.pointer = NULL;
|
buffer.pointer = NULL;
|
||||||
dev->pnp.str_obj = buffer.pointer;
|
dev->pnp.str_obj = buffer.pointer;
|
||||||
|
|
Loading…
Add table
Reference in a new issue