diff options
author | Aaron Lu <aaron.lu@intel.com> | 2013-01-15 04:20:59 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2013-01-21 15:41:12 -0500 |
commit | f064a20dded807448669426c9bfb7d03aba5659c (patch) | |
tree | 9d56100107fded886a7f0987142bc4ee9eb62bba /drivers/ata/libata-eh.c | |
parent | afe759511808cd5bb508b598007cf0c7b0ca8e08 (diff) |
libata: move acpi notification code to zpodd
Since the ata acpi notification code introduced in commit
3bd46600a7a7e938c54df8cdbac9910668c7dfb0 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: Aaron Lu <aaron.lu@intel.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata-eh.c')
0 files changed, 0 insertions, 0 deletions