~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/acpi/scan.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
797
797
        acpi_status status;
798
798
        acpi_event_status event_status;
799
799
 
800
 
        device->wakeup.run_wake_count = 0;
801
800
        device->wakeup.flags.notifier_present = 0;
802
801
 
803
802
        /* Power button, Lid switch always enable wakeup */
944
943
        if (ACPI_SUCCESS(status))
945
944
                device->flags.lockable = 1;
946
945
 
 
946
        /* Power resources cannot be power manageable. */
 
947
        if (device->device_type == ACPI_BUS_TYPE_POWER)
 
948
                return 0;
 
949
 
947
950
        /* Presence of _PS0|_PR0 indicates 'power manageable' */
948
951
        status = acpi_get_handle(device->handle, "_PS0", &temp);
949
952
        if (ACPI_FAILURE(status))