Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230989
b: refs/heads/master
c: 4c90aa9
h: refs/heads/master
i:
  230987: 0538662
v: v3
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Jan 14, 2011
1 parent dc2cb70 commit 8156421
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d7b9f3220fd97522559316cdd72778f42ac4de04
refs/heads/master: 4c90aa94f6b3e33f57faaf19ef9819195dff61d3
4 changes: 4 additions & 0 deletions trunk/drivers/mfd/mfd-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/platform_device.h>
#include <linux/acpi.h>
#include <linux/mfd/core.h>
#include <linux/pm_runtime.h>
#include <linux/slab.h>

static int mfd_add_device(struct device *parent, int id,
Expand Down Expand Up @@ -82,6 +83,9 @@ static int mfd_add_device(struct device *parent, int id,
if (ret)
goto fail_res;

if (cell->pm_runtime_no_callbacks)
pm_runtime_no_callbacks(&pdev->dev);

kfree(res);

return 0;
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/linux/mfd/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ struct mfd_cell {

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

/*
* Disable runtime PM callbacks for this subdevice - see
* pm_runtime_no_callbacks().
*/
bool pm_runtime_no_callbacks;
};

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

0 comments on commit 8156421

Please sign in to comment.