mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
sony-laptop: ignore missing _DIS method on pic device
At least the Vaio VGN-Z540N doesn't have this method, so let's not fail to suspend just because it doesn't exist. Signed-off-by: Adam Jackson <ajax@redhat.com> Acked-by: Mattia Dongili <malattia@linux.it> Cc: Len Brown <lenb@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
def1be2d72
commit
6158d3a232
@ -2315,8 +2315,10 @@ end:
|
||||
*/
|
||||
static int sony_pic_disable(struct acpi_device *device)
|
||||
{
|
||||
if (ACPI_FAILURE(acpi_evaluate_object(device->handle,
|
||||
"_DIS", NULL, NULL)))
|
||||
acpi_status ret = acpi_evaluate_object(device->handle, "_DIS", NULL,
|
||||
NULL);
|
||||
|
||||
if (ACPI_FAILURE(ret) && ret != AE_NOT_FOUND)
|
||||
return -ENXIO;
|
||||
|
||||
dprintk("Device disabled\n");
|
||||
|
Loading…
Reference in New Issue
Block a user