mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
2d95ae3bbf
commit
5f2545fa15
2 changed files with 8 additions and 3 deletions
|
|
@ -65,9 +65,11 @@ static int mfd_add_device(struct device *parent, int id,
|
|||
res[r].end = cell->resources[r].end;
|
||||
}
|
||||
|
||||
ret = acpi_check_resource_conflict(res);
|
||||
if (ret)
|
||||
goto fail_res;
|
||||
if (!cell->ignore_resource_conflicts) {
|
||||
ret = acpi_check_resource_conflict(res);
|
||||
if (ret)
|
||||
goto fail_res;
|
||||
}
|
||||
}
|
||||
|
||||
ret = platform_device_add_resources(pdev, res, cell->num_resources);
|
||||
|
|
|
|||
Loading…
Reference in a new issue