| Subject | [PATCH 04/45] Fix use of ACPI_COMPANION_SET() | From | David Howells <> | Date | Sun, 01 Apr 2018 21:40:39 +0100 |
| |
ACPI_COMPANION_SET() takes a bool as the third argument, not a pointer, so pass false in, not NULL.
Signed-off-by: David Howells <dhowells@redhat.com> ---
include/linux/acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 968173ec2726..9e59bad1d301 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -101,7 +101,7 @@ static inline bool has_acpi_companion(struct device *dev) static inline void acpi_preset_companion(struct device *dev, struct acpi_device *parent, u64 addr) { - ACPI_COMPANION_SET(dev, acpi_find_child_device(parent, addr, NULL)); + ACPI_COMPANION_SET(dev, acpi_find_child_device(parent, addr, false)); } static inline const char *acpi_dev_name(struct acpi_device *adev)
|