mfd: core: Fix ACPI child matching by _HID/_CID
authorIrina Tirdea <irina.tirdea@intel.com>
Sun, 13 Mar 2016 01:02:58 +0000 (03:02 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Apr 2016 12:31:40 +0000 (13:31 +0100)
commitee414de525a9abf29e8a1b0c1b6f79f9e875213a
treeeaaf0ac0265e516cf0a7b2a87808d2c33be81659
parent9caac886397bdfd6c1a6b48493db6cd95bce313c
mfd: core: Fix ACPI child matching by _HID/_CID

If MDF child devices have separate ACPI nodes identified
by _HID/_CID, they will not be assigned the intended
ACPI companion.

acpi_match_device_ids will return 0 if a the child device
matches the _HID/_CID, so this patch changes the matching
condition to check for 0 on success.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Acked-by: Mika Westerberg <mika.westeberg@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/mfd-core.c