Skip to content

Commit 6f09280

Browse files
committed
Merge tag 'pm+acpi-3.16-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI fix from Rafael Wysocki: "One commit that fixes a problem causing PNP devices to be associated with wrong ACPI device objects sometimes during device enumeration due to an incorrect check in a matching function. That problem was uncovered by the ACPI device enumeration rework in 3.14" * tag 'pm+acpi-3.16-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI / PNP: Fix acpi_pnp_match()
2 parents 7c909b0 + b6328a0 commit 6f09280

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/pnp/pnpacpi/core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ static int __init acpi_pnp_match(struct device *dev, void *_pnp)
319319
struct pnp_dev *pnp = _pnp;
320320

321321
/* true means it matched */
322-
return !acpi->physical_node_count
323-
&& compare_pnp_id(pnp->id, acpi_device_hid(acpi));
322+
return pnp->data == acpi;
324323
}
325324

326325
static struct acpi_device * __init acpi_pnp_find_companion(struct device *dev)

0 commit comments

Comments
 (0)