summaryrefslogtreecommitdiff
path: root/drivers/net/ipa/ipa_clock.c
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-08-10 14:27:04 -0500
committerDavid S. Miller <davem@davemloft.net>2021-08-11 13:31:56 +0100
commit0d08026ac6099ef8bd73412005830ce7280b7c80 (patch)
treeacd78b3afced1a108e3d34ca5342fd695a2b38b1 /drivers/net/ipa/ipa_clock.c
parenta71aeff3dd0a7d127967d42a86b42b0aa21a90dc (diff)
net: ipa: kill ipa_clock_get_additional()
Now that ipa_clock_get_additional() is a trivial wrapper around pm_runtime_get_if_active(), just open-code it in its only caller and delete the function. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_clock.c')
-rw-r--r--drivers/net/ipa/ipa_clock.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/ipa/ipa_clock.c b/drivers/net/ipa/ipa_clock.c
index ab6626c617b9..6df66c574d59 100644
--- a/drivers/net/ipa/ipa_clock.c
+++ b/drivers/net/ipa/ipa_clock.c
@@ -264,15 +264,6 @@ static int ipa_runtime_idle(struct device *dev)
return -EAGAIN;
}
-/* Get an IPA clock reference, but only if the reference count is
- * already non-zero. Returns true if the additional reference was
- * added successfully, or false otherwise.
- */
-bool ipa_clock_get_additional(struct ipa *ipa)
-{
- return pm_runtime_get_if_active(&ipa->pdev->dev, true) > 0;
-}
-
/* Get an IPA clock reference. If the reference count is non-zero, it is
* incremented and return is immediate. Otherwise the IPA clock is
* enabled.