dm: power-domain: query power domain after get device
authorPeng Fan <peng.fan@nxp.com>
Fri, 27 Jul 2018 02:20:39 +0000 (10:20 +0800)
committerAnatolij Gustschin <agust@denx.de>
Mon, 6 Aug 2018 09:52:19 +0000 (11:52 +0200)
commit4624faadffdb1cad65ad0c77d5a302ccbfaf4eae
treeafbe276bc8272c2ee8d9160a378bfcc35bf933ca
parent3ad3077848474d75f75cde31dc3eb80d075a4b82
dm: power-domain: query power domain after get device

This is to test power_domain_on in device_probe.
If the device has a power-domain property, enable it
when probe the device. So add the test to check
whether it is powered on or not.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/dm/power-domain.c