From: Kejian Yan Date: Fri, 3 Jun 2016 02:55:09 +0000 (+0800) Subject: ACPI: bus: add stub acpi_dev_found() to linux/acpi.h X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6eb17e0df74c036eba7548915b37f009403fe09e;p=openwrt%2Fstaging%2Fblogic.git ACPI: bus: add stub acpi_dev_found() to linux/acpi.h acpi_dev_found() will be used to detect if a given ACPI device is in the system. It will be compiled in non-ACPI case, but the function is in acpi_bus.h and acpi_bus.h can only be used in ACPI case, so this patch add the stub function to linux/acpi.h to make compiled successfully in non-ACPI cases. Cc: Rafael J. Wysocki Signed-off-by: Kejian Yan Signed-off-by: Yisen Zhuang Signed-off-by: David S. Miller --- diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 288fac5294f5..3025d1930f6e 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -543,6 +543,11 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *); struct fwnode_handle; +static inline bool acpi_dev_found(const char *hid) +{ + return false; +} + static inline bool is_acpi_node(struct fwnode_handle *fwnode) { return false;