[PATCH v10 2/4] PM / Domains: add setter for dev.pm_domain

2015-10-26 Thread Tomeu Vizoso
On 25 October 2015 at 16:18, Rafael J. Wysocki wrote: > On Wednesday, October 21, 2015 05:34:12 PM Tomeu Vizoso wrote: >> 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

[PATCH v10 2/4] PM / Domains: add setter for dev.pm_domain

2015-10-25 Thread Rafael J. Wysocki
On Wednesday, October 21, 2015 05:34:12 PM Tomeu Vizoso wrote: > 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

[PATCH v10 2/4] PM / Domains: add setter for dev.pm_domain

2015-10-21 Thread Tomeu Vizoso
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 tha