usb: otg: enable regulator only on cable/device connect
authorHema HK <hemahk@ti.com>
Thu, 17 Feb 2011 06:36:04 +0000 (12:06 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 17 Feb 2011 19:11:46 +0000 (21:11 +0200)
commit6dc2503b81a0171e68766f722a452e97a7da320b
tree4c784d66bf2d7fd79449f55973d75f83db1a0188
parent207b0e1f1655bd7008b7322cdc3f84fb171c546d
usb: otg: enable regulator only on cable/device connect

Remove the regulator enable while driver loading and enable it only when
the cable/device is connected and disable it when disconnected.

Remove the configuration of config_state and config_trans register
configuration as these registers are programmed when regulator
enable/disable is called.

Signed-off-by: Hema HK <hemahk@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/otg/twl6030-usb.c