Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220611
b: refs/heads/master
c: 5f2545f
h: refs/heads/master
i:
  220609: a7fa8b0
  220607: ba3a120
v: v3
  • Loading branch information
Daniel Drake authored and Samuel Ortiz committed Oct 28, 2010
1 parent 4c3c8fc commit c35ddac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2d95ae3bbffe54b2e73e0d291e1d67e09d5e448f
refs/heads/master: 5f2545fa156f3d4d327038d7664608e146809a3c
8 changes: 5 additions & 3 deletions trunk/drivers/mfd/mfd-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/linux/mfd/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ struct mfd_cell {
*/
int num_resources;
const struct resource *resources;

/* don't check for resource conflicts */
bool ignore_resource_conflicts;
};

extern int mfd_add_devices(struct device *parent, int id,
Expand Down

0 comments on commit c35ddac

Please sign in to comment.