From: Rafael J. Wysocki Date: Sat, 22 Dec 2012 23:02:44 +0000 (+0100) Subject: ACPI / PCI: Rework the setup and cleanup of device wakeup X-Git-Tag: v3.9-rc1~146^2~12^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2e5f0c16ad60a7208fd371233e63b73c990ece2;p=pandora-kernel.git ACPI / PCI: Rework the setup and cleanup of device wakeup Currently, the ACPI wakeup capability of PCI devices is set up in two different places, partially in acpi_pci_bind() where runtime wakeup is initialized and partially in platform_pci_wakeup_init(), where system wakeup is initialized. The cleanup is only done in acpi_pci_unbind() and it only covers runtime wakeup. Use the new .setup() and .cleanup() callbacks in struct acpi_bus_type to consolidate that code and do the setup and the cleanup each in one place. Signed-off-by: Rafael J. Wysocki Acked-by: Yinghai Lu Acked-by: Toshi Kani --- Reading git-diff-tree failed