• Aaron Lu's avatar
    libata: move acpi notification code to zpodd · f064a20d
    Aaron Lu authored
    Since the ata acpi notification code introduced in commit
    3bd46600 is solely for ZPODD, and we
    now have a dedicated place for it, move these code there.
    
    And the ata_acpi_add_pm_notifier code is changed a little bit in that it
    is now invoked when scsi device is not bound with ACPI yet, so the way
    to get the acpi handle is different with the previous version. And the
    ata_acpi_add/remove_pm_notifier is also simplified a little bit in that
    it doesn't check if the acpi_device for the handle exists or not as the
    odd_can_poweroff function already checked that.
    Signed-off-by: default avatarAaron Lu <aaron.lu@intel.com>
    Acked-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    f064a20d
libata-acpi.c 27.1 KB