5d271fe4da81ef386911eeb31d9a7ee013301b5a
[openwrt/staging/pepe2k.git] / target / linux / bcm27xx / patches-6.1 / 950-0851-Revert-usb-phy-generic-Get-the-vbus-supply.patch
1 From 406e7dc82be6ce1b81c88b418640daeef6c2be42 Mon Sep 17 00:00:00 2001
2 From: Dom Cobley <popcornmix@gmail.com>
3 Date: Mon, 23 May 2022 16:56:44 +0100
4 Subject: [PATCH] Revert "usb: phy: generic: Get the vbus supply"
5
6 This reverts commit c0ea202fbc855d60bc4a0603ca52a9e80654b327.
7 ---
8 drivers/usb/phy/phy-generic.c | 7 -------
9 1 file changed, 7 deletions(-)
10
11 --- a/drivers/usb/phy/phy-generic.c
12 +++ b/drivers/usb/phy/phy-generic.c
13 @@ -272,13 +272,6 @@ int usb_phy_gen_create_phy(struct device
14 return dev_err_probe(dev, PTR_ERR(nop->vbus_draw),
15 "could not get vbus regulator\n");
16
17 - nop->vbus_draw = devm_regulator_get_exclusive(dev, "vbus");
18 - if (PTR_ERR(nop->vbus_draw) == -ENODEV)
19 - nop->vbus_draw = NULL;
20 - if (IS_ERR(nop->vbus_draw))
21 - return dev_err_probe(dev, PTR_ERR(nop->vbus_draw),
22 - "could not get vbus regulator\n");
23 -
24 nop->dev = dev;
25 nop->phy.dev = nop->dev;
26 nop->phy.label = "nop-xceiv";