diff options
| author | Dr. David Alan Gilbert <linux@treblig.org> | 2025-03-06 04:54:08 +0300 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2025-03-10 10:28:07 +0300 |
| commit | b02d41d884f64d22d5d5a2a4b35550f5e80bdb3d (patch) | |
| tree | e21db058ab81549fb88d8da369f14f05f21c5001 /drivers/phy/phy-core.c | |
| parent | 1f7af7f3c353ae3b384a66a82c5074ac28901160 (diff) | |
| download | linux-b02d41d884f64d22d5d5a2a4b35550f5e80bdb3d.tar.xz | |
phy: core: Remove unused phy_pm_runtime_(allow|forbid)
phy_pm_runtime_allow() and phy_pm_runtime_forbid() were added in 2013
as part of
commit ff764963479a ("drivers: phy: add generic PHY framework")
but have remained unused.
Remove them.
Fix up the (English) docs - I've left the Chinese translation.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20250306015408.277729-1-linux@treblig.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/phy-core.c')
| -rw-r--r-- | drivers/phy/phy-core.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index 067316dfcd83..8e2daea81666 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -214,30 +214,6 @@ int phy_pm_runtime_put_sync(struct phy *phy) } EXPORT_SYMBOL_GPL(phy_pm_runtime_put_sync); -void phy_pm_runtime_allow(struct phy *phy) -{ - if (!phy) - return; - - if (!pm_runtime_enabled(&phy->dev)) - return; - - pm_runtime_allow(&phy->dev); -} -EXPORT_SYMBOL_GPL(phy_pm_runtime_allow); - -void phy_pm_runtime_forbid(struct phy *phy) -{ - if (!phy) - return; - - if (!pm_runtime_enabled(&phy->dev)) - return; - - pm_runtime_forbid(&phy->dev); -} -EXPORT_SYMBOL_GPL(phy_pm_runtime_forbid); - /** * phy_init - phy internal initialization before phy operation * @phy: the phy returned by phy_get() |
