diff options
| -rw-r--r-- | drivers/mfd/mfd-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index 7dd76bceaae8..1823a57b7d8f 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c | |||
| @@ -70,7 +70,9 @@ static int mfd_add_device(struct device *parent, int id, | |||
| 70 | goto fail_res; | 70 | goto fail_res; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | platform_device_add_resources(pdev, res, cell->num_resources); | 73 | ret = platform_device_add_resources(pdev, res, cell->num_resources); |
| 74 | if (ret) | ||
| 75 | goto fail_res; | ||
| 74 | 76 | ||
| 75 | ret = platform_device_add(pdev); | 77 | ret = platform_device_add(pdev); |
| 76 | if (ret) | 78 | if (ret) |
