aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorUlf Hansson <[email protected]>2014-09-19 20:27:37 +0200
committerRafael J. Wysocki <[email protected]>2014-09-22 15:57:40 +0200
commit46420dd73b800f87a19af13af5883855cf38cb08 (patch)
treebe10bd4b1d36b76fb776cc000a71c1f09ea96a42 /net/lapb/lapb_subr.c
parentaa42240ab2544a8bcb2efb400193826f57f3175e (diff)
PM / Domains: Add APIs to attach/detach a PM domain for a device
To maintain scalability let's add common methods to attach and detach a PM domain for a device, dev_pm_domain_attach|detach(). Typically dev_pm_domain_attach() shall be invoked from subsystem level code at the probe phase to try to attach a device to its PM domain. The reversed actions may be done a the remove phase and then by invoking dev_pm_domain_detach(). When attachment succeeds, the attach function should assign its corresponding detach function to a new ->detach() callback added in the struct dev_pm_domain. Signed-off-by: Ulf Hansson <[email protected]> Tested-by: Philipp Zabel <[email protected]> Reviewed-by: Kevin Hilman <[email protected]> Reviewed-by: Dmitry Torokhov <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions