mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
|
From db30603206393b8b96c1c82c7334da50465af94b Mon Sep 17 00:00:00 2001
|
||
|
From: Dom Cobley <popcornmix@gmail.com>
|
||
|
Date: Wed, 27 Mar 2024 19:02:50 +0000
|
||
|
Subject: [PATCH 1000/1002] Revert "usb: phy: generic: Get the vbus supply"
|
||
|
|
||
|
This reverts commit 0255a3b17b1cb68ef9d4b36e101d301383f7a3c6.
|
||
|
---
|
||
|
drivers/usb/phy/phy-generic.c | 7 -------
|
||
|
1 file changed, 7 deletions(-)
|
||
|
|
||
|
diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c
|
||
|
index b855d291dfe6..770081b828a4 100644
|
||
|
--- a/drivers/usb/phy/phy-generic.c
|
||
|
+++ b/drivers/usb/phy/phy-generic.c
|
||
|
@@ -268,13 +268,6 @@ int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_generic *nop)
|
||
|
return dev_err_probe(dev, PTR_ERR(nop->vbus_draw),
|
||
|
"could not get vbus regulator\n");
|
||
|
|
||
|
- nop->vbus_draw = devm_regulator_get_exclusive(dev, "vbus");
|
||
|
- if (PTR_ERR(nop->vbus_draw) == -ENODEV)
|
||
|
- nop->vbus_draw = NULL;
|
||
|
- if (IS_ERR(nop->vbus_draw))
|
||
|
- return dev_err_probe(dev, PTR_ERR(nop->vbus_draw),
|
||
|
- "could not get vbus regulator\n");
|
||
|
-
|
||
|
nop->dev = dev;
|
||
|
nop->phy.dev = nop->dev;
|
||
|
nop->phy.label = "nop-xceiv";
|
||
|
--
|
||
|
2.44.0
|
||
|
|