aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorMatthew Garrett <mjg59@srcf.ucam.org>2008-10-29 17:01:03 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-30 14:38:46 -0400
commit6158d3a2323835546c7cf83a170316fa77b726e0 (patch)
treecdce46d9b365b69ed6e53f1d36c04d2f1a15a7bf /drivers/misc
parentdef1be2d727a1764205479b3e3e3ba16ffbad028 (diff)
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/sony-laptop.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c
index 5a97d3a9d745..f483c4221f76 100644
--- a/drivers/misc/sony-laptop.c
+++ b/drivers/misc/sony-laptop.c
@@ -2315,8 +2315,10 @@ end:
2315 */ 2315 */
2316static int sony_pic_disable(struct acpi_device *device) 2316static int sony_pic_disable(struct acpi_device *device)
2317{ 2317{
2318 if (ACPI_FAILURE(acpi_evaluate_object(device->handle, 2318 acpi_status ret = acpi_evaluate_object(device->handle, "_DIS", NULL,
2319 "_DIS", NULL, NULL))) 2319 NULL);
2320
2321 if (ACPI_FAILURE(ret) && ret != AE_NOT_FOUND)
2320 return -ENXIO; 2322 return -ENXIO;
2321 2323
2322 dprintk("Device disabled\n"); 2324 dprintk("Device disabled\n");