mfd: Fix ACPI conflict check
authorJean Delvare <khali@linux-fr.org>
Sat, 18 Feb 2012 16:54:23 +0000 (17:54 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 23 Feb 2012 16:34:22 +0000 (17:34 +0100)
commit81b5482c32769abb6dfb979560dab2f952ba86fa
treeb57b1c2d4905be829a472539bb9ac7dd11f7ca54
parenta60e8df64ddc6bd79c85a970f59f2967c968cfac
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>
drivers/mfd/mfd-core.c