ACPI: bus: add stub acpi_dev_found() to linux/acpi.h
authorKejian Yan <yankejian@huawei.com>
Fri, 3 Jun 2016 02:55:09 +0000 (10:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jun 2016 01:32:39 +0000 (21:32 -0400)
commit6eb17e0df74c036eba7548915b37f009403fe09e
tree7fa0bb6a67f8c26fee0021207b4dca466714311b
parent169fbdc6f54ae6b557e404419b5dba919064404b
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 <rjw@rjwysocki.net>
Signed-off-by: Kejian Yan <yankejian@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/acpi.h