usb: phy: generic: make vcc regulator optional
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 12 Oct 2022 13:27:54 +0000 (15:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 23 Oct 2022 12:34:52 +0000 (14:34 +0200)
commit32c6fefb291bf84c5a4dbc7d52b56a1605ed9aae
treed59542ecad08a4b3d3b5c042f6f859c1b31018fc
parent55f223b8b408cbfd85fb1c5b74ab85ccab319a69
usb: phy: generic: make vcc regulator optional

phy-generic uses the existance of the property "vcc-supply" to see if a
regulator is optional or not. Use devm_regulator_get_optional() instead
which exists for this purpose. Using devm_regulator_get_optional()
avoids "supply vcc not found, using dummy regulator" messages.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.kernel.org/r/20221012132754.292151-1-s.hauer@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-generic.c