summaryrefslogtreecommitdiffstats
path: root/include/acpi/acpi_bus.h
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2012-05-11 16:08:25 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-11 17:03:12 -0700
commit66886d6f8c9bcdee3d7fce5796dcffd6b4bc0b48 (patch)
treea5e362f9946b718a3658d7c3c9cd93b6a90a0319 /include/acpi/acpi_bus.h
parent2721ea2c0f26bb3a2668541412740497b64be2a2 (diff)
downloadblackbird-op-linux-66886d6f8c9bcdee3d7fce5796dcffd6b4bc0b48.tar.gz
blackbird-op-linux-66886d6f8c9bcdee3d7fce5796dcffd6b4bc0b48.zip
ACPI: Add stubs for (un)register_acpi_bus_type
It's unreasonable to have CONFIG_ACPI for these in drivers, so add some stub functions. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r--include/acpi/acpi_bus.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index f1c8ca60e824..c909984d0720 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -407,6 +407,11 @@ static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable)
}
#endif
+#else /* CONFIG_ACPI */
+
+static int register_acpi_bus_type(struct acpi_bus_type *bus) { return 0; }
+static int unregister_acpi_bus_type(struct acpi_bus_type *bus) { return 0; }
+
#endif /* CONFIG_ACPI */
#endif /*__ACPI_BUS_H__*/
OpenPOWER on IntegriCloud