From: Aaron Lu Date: Tue, 27 Aug 2013 18:07:12 +0000 (-0400) Subject: libata: acpi: Remove ata_dev_acpi_handle stub in libata.h X-Git-Tag: upstream/snapshot3+hdmi~4464^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03f7b802b876904971f23f00f562061309e95e08;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git libata: acpi: Remove ata_dev_acpi_handle stub in libata.h The ata_dev_acpi_handle is defined in libata-acpi.c and the only external user is libata-zpodd.c, which is built when CONFIG_ATA_ACPI is set, so there is no need to make an empty stub function for ONFIG_ATA_ACPI case in libata.h. It also causes compile errors due to acpi_handle is not defined when !CONFIG_ACPI. This patch fixes this problem by removing the empty stub. Reported-by: Stephen Rothwell Signed-off-by: Aaron Lu Signed-off-by: Tejun Heo --- diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 3e9cc95..eeeb778 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h @@ -133,7 +133,6 @@ static inline void ata_acpi_set_state(struct ata_port *ap, pm_message_t state) { } static inline void ata_acpi_bind_port(struct ata_port *ap) {} static inline void ata_acpi_bind_dev(struct ata_device *dev) {} -static inline acpi_handle ata_dev_acpi_handle(struct ata_device *dev) { return NULL; } static inline void ata_scsi_acpi_bind(struct ata_device *dev) {} static inline void ata_scsi_acpi_unbind(struct ata_device *dev) {} #endif