From: Hui Liu <quic_huliu@xxxxxxxxxxx>
Check regulator enable status before disabling it to avoid
unbalanced regulator disable warnings.
Reviewed-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Fixes: a4422ff22142 ("usb: typec: qcom: Add Qualcomm PMIC Type-C driver")
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
Acked-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
Signed-off-by: Hui Liu <quic_huliu@xxxxxxxxxxx>