summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2012-02-18 16:54:23 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-23 16:34:22 (GMT)
commit81b5482c32769abb6dfb979560dab2f952ba86fa (patch)
treeb57b1c2d4905be829a472539bb9ac7dd11f7ca54 /drivers/mfd
parenta60e8df64ddc6bd79c85a970f59f2967c968cfac (diff)
downloadlinux-81b5482c32769abb6dfb979560dab2f952ba86fa.tar.xz
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 91fedede0338eb6203cdd618d8ece873fdb7c22c. 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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/mfd-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c
index 0f59228..411f523 100644
--- a/drivers/mfd/mfd-core.c
+++ b/drivers/mfd/mfd-core.c
@@ -123,7 +123,7 @@ static int mfd_add_device(struct device *parent, int id,
}
if (!cell->ignore_resource_conflicts) {
- ret = acpi_check_resource_conflict(res);
+ ret = acpi_check_resource_conflict(&res[r]);
if (ret)
goto fail_res;
}