Skip to content

Commit 855cc45

Browse files
Jean DelvareSamuel Ortiz
authored andcommitted
mfd: Fix ACPI conflict check
The code is currently always checking the first resource of every device only (several times.) This has been broken since the ACPI check was added in February 2010 in commit 91feded. Fix the check to run on each resource individually, once. Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: stable@vger.kernel.org Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent ee42b3a commit 855cc45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/mfd-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static int mfd_add_device(struct device *parent, int id,
123123
}
124124

125125
if (!cell->ignore_resource_conflicts) {
126-
ret = acpi_check_resource_conflict(res);
126+
ret = acpi_check_resource_conflict(&res[r]);
127127
if (ret)
128128
goto fail_res;
129129
}

0 commit comments

Comments
 (0)