Skip to contentSkip to conversation

ACPI / PM: Fix header of acpi_dev_pm_detach() in acpi.h

PATCH In review Rafael J. Wysocki 2 participants 2 messages Dec 5, 2012 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI / PM: Fix header of acpi_dev_pm_detach() in acpi.h

From: Rafael J. Wysocki <[email protected]>

The header of acpi_dev_pm_detach() in include/linux/acpi.h has an incorrect return type, which should be void. Fix that.

---
 include/linux/acpi.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/acpi.h +1 -1
Index: linux/include/linux/acpi.h
===================================================================
@@ -506,7 +506,7 @@ static inline int acpi_subsys_resume_ear
 
 #if defined(CONFIG_ACPI) && defined(CONFIG_PM)
 int acpi_dev_pm_attach(struct device *dev, bool power_on);
-int acpi_dev_pm_detach(struct device *dev, bool power_off);
+void acpi_dev_pm_detach(struct device *dev, bool power_off);
 #else
 static inline int acpi_dev_pm_attach(struct device *dev, bool power_on)
 {
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]>

The header of acpi_dev_pm_detach() in include/linux/acpi.h has an incorrect return type, which should be void. Fix that.

Quoted 17 lines
---
 include/linux/acpi.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/include/linux/acpi.h
===================================================================

include/linux/acpi.h +1 -1
@@ -506,7 +506,7 @@ static inline int acpi_subsys_resume_ear
 
 #if defined(CONFIG_ACPI) && defined(CONFIG_PM)
 int acpi_dev_pm_attach(struct device *dev, bool power_on);
-int acpi_dev_pm_detach(struct device *dev, bool power_off);
+void acpi_dev_pm_detach(struct device *dev, bool power_off);
 #else
 static inline int acpi_dev_pm_attach(struct device *dev, bool power_on)
 {