diff options
| -rw-r--r-- | drivers/mfd/mfd-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index ae15e495e20e..aa17f4bddc56 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
| 15 | #include <linux/platform_device.h> | 15 | #include <linux/platform_device.h> |
| 16 | #include <linux/acpi.h> | ||
| 16 | #include <linux/mfd/core.h> | 17 | #include <linux/mfd/core.h> |
| 17 | 18 | ||
| 18 | static int mfd_add_device(struct device *parent, int id, | 19 | static int mfd_add_device(struct device *parent, int id, |
| @@ -62,6 +63,10 @@ static int mfd_add_device(struct device *parent, int id, | |||
| 62 | res[r].start = cell->resources[r].start; | 63 | res[r].start = cell->resources[r].start; |
| 63 | res[r].end = cell->resources[r].end; | 64 | res[r].end = cell->resources[r].end; |
| 64 | } | 65 | } |
| 66 | |||
| 67 | ret = acpi_check_resource_conflict(res); | ||
| 68 | if (ret) | ||
| 69 | goto fail_res; | ||
| 65 | } | 70 | } |
| 66 | 71 | ||
| 67 | platform_device_add_resources(pdev, res, cell->num_resources); | 72 | platform_device_add_resources(pdev, res, cell->num_resources); |
