]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
libata: move acpi notification code to zpodd
authorAaron Lu <aaron.lu@intel.com>
Tue, 15 Jan 2013 09:20:59 +0000 (17:20 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 21 Jan 2013 20:41:12 +0000 (15:41 -0500)
commitf064a20dded807448669426c9bfb7d03aba5659c
tree9d56100107fded886a7f0987142bc4ee9eb62bba
parentafe759511808cd5bb508b598007cf0c7b0ca8e08
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>
drivers/ata/libata-acpi.c
drivers/ata/libata-zpodd.c