diff options
author | Daniel Drake <dsd@laptop.org> | 2010-09-30 16:55:36 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-28 18:29:48 -0400 |
commit | 5f2545fa156f3d4d327038d7664608e146809a3c (patch) | |
tree | 82794cb7ca41816463a35bcf27a4f18af0633730 /drivers/mfd | |
parent | 2d95ae3bbffe54b2e73e0d291e1d67e09d5e448f (diff) |
mfd: Allow for bypass of cell resource conflict check
The upcoming VIA VX855 MFD driver needs to communicate resources
to subdevices where the resources may be claimed by ACPI.
Add a flag to mfd_cell to request that resources are not policed.
Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/mfd-core.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index 1823a57b7d8f..d1c8605d4ed4 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c | |||
@@ -65,9 +65,11 @@ static int mfd_add_device(struct device *parent, int id, | |||
65 | res[r].end = cell->resources[r].end; | 65 | res[r].end = cell->resources[r].end; |
66 | } | 66 | } |
67 | 67 | ||
68 | ret = acpi_check_resource_conflict(res); | 68 | if (!cell->ignore_resource_conflicts) { |
69 | if (ret) | 69 | ret = acpi_check_resource_conflict(res); |
70 | goto fail_res; | 70 | if (ret) |
71 | goto fail_res; | ||
72 | } | ||
71 | } | 73 | } |
72 | 74 | ||
73 | ret = platform_device_add_resources(pdev, res, cell->num_resources); | 75 | ret = platform_device_add_resources(pdev, res, cell->num_resources); |