LinuxKPI: Exclude linux/acpi.h content on non-ACPI archs.
LinuxKPI ACPI support is based on FreeBSD import of ACPICA which can be compiled only on aarch64, amd64 and i386. Ifdef-out broken parts on our side to avoid patching of vendor code. This fixes drm-devel-kmod build on powerpc64(le). Reported by: pkubaj
This commit is contained in:
parent
8a1509e442
commit
146e176df7
@ -33,10 +33,14 @@
|
||||
|
||||
#include <linux/device.h>
|
||||
|
||||
#if defined(__aarch64__) || defined(__amd64__) || defined(__i386__)
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
#include <acpi/acpi_bus.h>
|
||||
|
||||
#define ACPI_HANDLE(dev) \
|
||||
((dev)->bsddev != NULL ? bsd_acpi_get_handle((dev)->bsddev) : NULL)
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* _LINUX_ACPI_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user