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> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
committed by
Len Brown
parent
49fdf6785f
commit
bd2b064ecd
@@ -2315,8 +2315,10 @@ end:
|
|||||||
*/
|
*/
|
||||||
static int sony_pic_disable(struct acpi_device *device)
|
static int sony_pic_disable(struct acpi_device *device)
|
||||||
{
|
{
|
||||||
if (ACPI_FAILURE(acpi_evaluate_object(device->handle,
|
acpi_status ret = acpi_evaluate_object(device->handle, "_DIS", NULL,
|
||||||
"_DIS", NULL, NULL)))
|
NULL);
|
||||||
|
|
||||||
|
if (ACPI_FAILURE(ret) && ret != AE_NOT_FOUND)
|
||||||
return -ENXIO;
|
return -ENXIO;
|
||||||
|
|
||||||
dprintk("Device disabled\n");
|
dprintk("Device disabled\n");
|
||||||
|
Reference in New Issue
Block a user