]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: board: Set PM domain before probe
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 27 Oct 2015 14:27:26 +0000 (15:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2015 00:05:57 +0000 (09:05 +0900)
commit2b18a0eb107677d44fb28d46532cb8ac796f1d93
tree03825439eb6520a868a5d159dab1e91f3afae190
parent0cf55bbef2f9f5a51d947c430e207d2360e89e4c
staging: board: Set PM domain before probe

PM domains shouldn't be modified after a device is probed, so set it
before device registration to be sure of that.

In the future the PM domain pointer will be set through a setter that
will WARN if the device has been probed already.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/board/board.c