ARM: davinci: da8xx: Add full regulator constraints for non-DT boot
authorAxel Haslam <ahaslam@baylibre.com>
Wed, 26 Oct 2016 19:41:55 +0000 (21:41 +0200)
committerSekhar Nori <nsekhar@ti.com>
Mon, 31 Oct 2016 11:28:21 +0000 (16:58 +0530)
commit40a17abc8b98440ba3c05254b57564a6db1a70b0
tree877f840a326a23f79e140f4ff0260db12253528d
parent0fcd54112a9f7902b05741ab493173ee71210458
ARM: davinci: da8xx: Add full regulator constraints for non-DT boot

The phy framework requests an optional "phy" regulator. If it does
not find one, it returns -EPROBE_DEFER. In the case of non-DT boot
for the omap138-lcdk board, this would prevent the usb11 phy to probe
correctly and ohci would not enumerate.

By calling regulator_has_full_constraints(), An error would be returned
instead of -EPROBE_DEFER for the regulator, and the probe of the phy driver
can continue normally without a regulator.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
[nsekhar@ti.com: minor commit message updates]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-da830-evm.c
arch/arm/mach-davinci/board-omapl138-hawk.c