]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
PM / Domains: add setter for dev.pm_domain
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 7 Jan 2016 15:46:13 +0000 (16:46 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Jan 2016 00:12:06 +0000 (01:12 +0100)
commit989561de9b5112999475b406557d9c7e9e59c041
tree1c4257ef719116fecbea9ecdd14febb6af2c336b
parent6b9cb42752dafba3761dde0002ca58ca518b6311
PM / Domains: add setter for dev.pm_domain

Adds a function that sets the pointer to dev_pm_domain in struct device
and that warns if the device has already finished probing. The reason
why we want to enforce that is because in the general case that can
cause problems and also that we can simplify code quite a bit if we can
always assume that.

This patch also changes all current code that directly sets the
dev.pm_domain pointer.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/arm/mach-omap2/omap_device.c
drivers/acpi/acpi_lpss.c
drivers/acpi/device_pm.c
drivers/base/power/clock_ops.c
drivers/base/power/common.c
drivers/base/power/domain.c
drivers/gpu/vga/vga_switcheroo.c
drivers/misc/mei/pci-me.c
drivers/misc/mei/pci-txe.c
include/linux/pm_domain.h