libata-acpi.c: remove unneeded #if's
PATCH 1/1 libata-acpi.c: remove unneeded #if's
These #if's are unneeded since they:
- did anyway not handle the CONFIG_ACPI_DOCK_MODULE case correctly and
- this is already handled in include/acpi/acpi_drivers.h and
- it's now correctly handled in kconfig.
---
This patch has been sent on:
- 14 Apr 2008
- 31 Mar 2008
drivers/ata/libata-acpi.c | 4 ---- 1 file changed, 4 deletions(-)
2a7326b50cd80e6570803d4efb7bc15e029e61e3 diff --git a/drivers/ata/libata-acpi.c b/drivers/ata/libata-acpi.c index bf98a56..1db912e 100644
drivers/ata/libata-acpi.c +0 -4
@@ -227,11 +227,9 @@ void ata_acpi_associate(struct ata_host *host)acpi_install_notify_handler (ap->acpi_handle,ACPI_SYSTEM_NOTIFY , ata_acpi_ap_notify, ap); -#if defined(CONFIG_ACPI_DOCK ) || defined(CONFIG_ACPI_DOCK_MODULE )/* we might be on a docking station */ register_hotplug_dock_device (ap->acpi_handle, ata_acpi_ap_notify, ap); -#endif }for (j =0 ; j <ata_link_max_devices (&ap->link); j++) {
@@ -241,11 +239,9 @@ void ata_acpi_associate(struct ata_host *host)acpi_install_notify_handler (dev->acpi_handle,ACPI_SYSTEM_NOTIFY , ata_acpi_dev_notify, dev); -#if defined(CONFIG_ACPI_DOCK ) || defined(CONFIG_ACPI_DOCK_MODULE )/* we might be on a docking station */ register_hotplug_dock_device (dev->acpi_handle, ata_acpi_dev_notify, dev); -#endif } } }
Jeff Garzik
AppliedQuoted 34 lines · Adrian Bunk
These #if's are unneeded since they:
- did anyway not handle theCONFIG_ACPI_DOCK_MODULEcase correctly and
- this is already handled ininclude/acpi/acpi_drivers.hand
- it's now correctly handled in kconfig.Signed-off-by Adrian Bunk <[email protected]>Acked-by Tejun Heo <[email protected]>---
This patch has been sent on:
- 14 Apr 2008
- 31 Mar 2008drivers/ata/libata-acpi.c | 4 ---- 1 file changed, 4 deletions(-)
2a7326b50cd80e6570803d4efb7bc15e029e61e3diff --gita/drivers/ata/libata-acpi.cb/drivers/ata/libata-acpi.cindex bf98a56..1db912e 100644drivers/ata/libata-acpi.c +0
-2@@ -227,11 +227,9 @@ void ata_acpi_associate(struct ata_host *host)acpi_install_notify_handler (ap->acpi_handle,ACPI_SYSTEM_NOTIFY , ata_acpi_ap_notify, ap); -#if defined(CONFIG_ACPI_DOCK ) || defined(CONFIG_ACPI_DOCK_MODULE )/* we might be on a docking station */ register_hotplug_dock_device (ap->acpi_handle, ata_acpi_ap_notify, ap); -#endif }for (j =0 ; j <ata_link_max_devices (&ap->link); j++) {
drivers/ata/libata-acpi.c void ata_acpi_associate(struct ata_host *host) · line 248
Quoted 8 lines
drivers/ata/libata-acpi.c +0
-2@@ -241,11 +239,9 @@ void ata_acpi_associate(struct ata_host *host)acpi_install_notify_handler (dev->acpi_handle,ACPI_SYSTEM_NOTIFY , ata_acpi_dev_notify, dev); -#if defined(CONFIG_ACPI_DOCK ) || defined(CONFIG_ACPI_DOCK_MODULE )/* we might be on a docking station */ register_hotplug_dock_device (dev->acpi_handle, ata_acpi_dev_notify, dev); -#endif
applied