usb: phy: qusb2: Rely on regulator_enable() for ref_counting
USB PHY regulators are enabled either by USB core driver for
regular USB operation or by Charger driver before performing
charger detection. To prevent race conditions between these
two, PHY driver currently maintains reference counting in
qusb_phy_enable_power().
Get rid of this reference counting in the driver as
regulator framework already takes care of same.
Change-Id: I3b7286c7feb2137736136a8e1b253e6451238f49
Signed-off-by:
Manu Gautam <mgautam@codeaurora.org>
Loading
Please register or sign in to comment