Commit 19ce2121 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Kleber Sacilotto de Souza

ACPI: fix acpi_find_child_device() invocation in acpi_preset_companion()

BugLink: https://bugs.launchpad.net/bugs/1858489

[ Upstream commit f8c6d140 ]

acpi_find_child_device() accepts boolean not pointer as last argument.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
[ rjw: Subject ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarConnor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 2daea50f
......@@ -75,7 +75,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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment