|
@@ -15,6 +15,7 @@
|
|
#include <linux/platform_device.h>
|
|
#include <linux/platform_device.h>
|
|
#include <linux/acpi.h>
|
|
#include <linux/acpi.h>
|
|
#include <linux/mfd/core.h>
|
|
#include <linux/mfd/core.h>
|
|
|
|
+#include <linux/pm_runtime.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
|
|
|
|
static int mfd_add_device(struct device *parent, int id,
|
|
static int mfd_add_device(struct device *parent, int id,
|
|
@@ -82,6 +83,9 @@ static int mfd_add_device(struct device *parent, int id,
|
|
if (ret)
|
|
if (ret)
|
|
goto fail_res;
|
|
goto fail_res;
|
|
|
|
|
|
|
|
+ if (cell->pm_runtime_no_callbacks)
|
|
|
|
+ pm_runtime_no_callbacks(&pdev->dev);
|
|
|
|
+
|
|
kfree(res);
|
|
kfree(res);
|
|
|
|
|
|
return 0;
|
|
return 0;
|