usb: dwc3-meson-g12a: Use regulator_set_enable_if_allowed 39/300739/2
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 1 Nov 2023 10:55:05 +0000 (19:55 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 6 Nov 2023 01:27:26 +0000 (10:27 +0900)
commit334ea44802f5f3dab0450248887283d8fef1749d
tree9b74a0f5e9b3c5733164dc4b70899ce638ef4801
parenta3810ce948be0d659dd3e7c65400e7b05ce6a39b
usb: dwc3-meson-g12a: Use regulator_set_enable_if_allowed

Some meson targets are using a fixed regulator about usb.
It's always returning to EALREADY, so driver doesn't init fine.
To prevent this problem, use the regulator_set_enable_if_allowed
instead of regulator_set_enable.

Fixes: 4fcba5d556b ("regulator: implement basic reference counter")

Change-Id: I39dea7b3a36dc2ba5c9c2d3487142e7e2fbe0f16
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/usb/dwc3/dwc3-meson-g12a.c