mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
PM: clk: remove unused of_pm_clk_add_clk()
The last use of of_pm_clk_add_clk() was removed by 2019's
commit fe00f8900c ("irqchip/gic-pm: Update driver to use
clk_bulk APIs")
Remove it.
Note that the plural version of_pm_clk_add_clks() is still being
used and is left.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://patch.msgid.link/20250224010610.187503-1-linux@treblig.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
d082ecbc71
commit
7ebd85022c
|
|
@ -259,39 +259,6 @@ int pm_clk_add_clk(struct device *dev, struct clk *clk)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(pm_clk_add_clk);
|
||||
|
||||
|
||||
/**
|
||||
* of_pm_clk_add_clk - Start using a device clock for power management.
|
||||
* @dev: Device whose clock is going to be used for power management.
|
||||
* @name: Name of clock that is going to be used for power management.
|
||||
*
|
||||
* Add the clock described in the 'clocks' device-tree node that matches
|
||||
* with the 'name' provided, to the list of clocks used for the power
|
||||
* management of @dev. On success, returns 0. Returns a negative error
|
||||
* code if the clock is not found or cannot be added.
|
||||
*/
|
||||
int of_pm_clk_add_clk(struct device *dev, const char *name)
|
||||
{
|
||||
struct clk *clk;
|
||||
int ret;
|
||||
|
||||
if (!dev || !dev->of_node || !name)
|
||||
return -EINVAL;
|
||||
|
||||
clk = of_clk_get_by_name(dev->of_node, name);
|
||||
if (IS_ERR(clk))
|
||||
return PTR_ERR(clk);
|
||||
|
||||
ret = pm_clk_add_clk(dev, clk);
|
||||
if (ret) {
|
||||
clk_put(clk);
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(of_pm_clk_add_clk);
|
||||
|
||||
/**
|
||||
* of_pm_clk_add_clks - Start using device clock(s) for power management.
|
||||
* @dev: Device whose clock(s) is going to be used for power management.
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ extern int pm_clk_create(struct device *dev);
|
|||
extern void pm_clk_destroy(struct device *dev);
|
||||
extern int pm_clk_add(struct device *dev, const char *con_id);
|
||||
extern int pm_clk_add_clk(struct device *dev, struct clk *clk);
|
||||
extern int of_pm_clk_add_clk(struct device *dev, const char *name);
|
||||
extern int of_pm_clk_add_clks(struct device *dev);
|
||||
extern void pm_clk_remove(struct device *dev, const char *con_id);
|
||||
extern void pm_clk_remove_clk(struct device *dev, struct clk *clk);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user