]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ACPI: bus: Fix MFD child automatic modprobe issue
authorPratap Nirujogi <pratap.nirujogi@amd.com>
Wed, 18 Mar 2026 03:47:57 +0000 (23:47 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 18 Mar 2026 10:57:22 +0000 (11:57 +0100)
MFD child devices sharing parent's ACPI Companion fails to probe as
acpi_companion_match() returns incompatible ACPI Companion handle for
binding with the check for pnp.type.backlight added recently. Remove this
pnp.type.backlight check in acpi_companion_match() to fix the automatic
modprobe issue.

Fixes: 7a7a7ed5f8bdb ("ACPI: scan: Register platform devices for backlight device objects")
Signed-off-by: Pratap Nirujogi <pratap.nirujogi@amd.com>
Link: https://patch.msgid.link/20260318034842.1216536-1-pratap.nirujogi@amd.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/bus.c

index f6707325f58210746cbbefa40c19d01761e65bd1..2ec095e2009e40b0645f654fb051429e5679dc7c 100644 (file)
@@ -818,9 +818,6 @@ const struct acpi_device *acpi_companion_match(const struct device *dev)
        if (list_empty(&adev->pnp.ids))
                return NULL;
 
-       if (adev->pnp.type.backlight)
-               return adev;
-
        return acpi_primary_dev_companion(adev, dev);
 }