diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2018-11-23 23:07:14 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-11-26 18:33:33 +0100 |
commit | f8c6d1402b89f22a3647705d63cbd171aa19a77e (patch) | |
tree | 74093f10881cb8fdc8748480184b9839e8ac2e75 /include/linux/acpi.h | |
parent | 2e6e902d185027f8e3cb8b7305238f7e35d6a436 (diff) | |
download | lwn-f8c6d1402b89f22a3647705d63cbd171aa19a77e.tar.gz lwn-f8c6d1402b89f22a3647705d63cbd171aa19a77e.zip |
ACPI: fix acpi_find_child_device() invocation in acpi_preset_companion()
acpi_find_child_device() accepts boolean not pointer as last argument.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index ed80f147bd50..f788cdbbd1b0 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) |