diff options
author | Graeme Gregory <graeme.gregory@linaro.org> | 2015-07-14 11:07:28 +0100 |
---|---|---|
committer | Graeme Gregory <graeme.gregory@linaro.org> | 2015-07-20 14:16:15 +0100 |
commit | 4426e05c5b67d0fbc5b259280ced019ee9d04338 (patch) | |
tree | 8ec979f4f301b160a5c7721a303d1c83740ace7b | |
parent | eb130b19be6dc2307e90db5b87c07a1763dcadaa (diff) |
DO NOT UPSTREAM: ACPI: hack to fix SPRC initialisation in CONFIG_ACPI=n
SPCR is broken in CONFIG_ACPI=n the function headers are defined in
asm/acpi.h which is not included when CONFIG_ACPI=n
Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
-rw-r--r-- | include/linux/acpi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index d2445fa9999f..57c13dff507e 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -815,4 +815,12 @@ static inline struct acpi_device *acpi_get_next_child(struct device *dev, #endif +#if !defined(CONFIG_ACPI) +static inline bool acpi_spcr_console_check(struct acpi_device *adev, + char *name, int index) +{ + return false; +} +#endif + #endif /*_LINUX_ACPI_H*/ |