mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
opp: Remove _dev_pm_opp_find_and_remove_table() wrapper
Remove the unnecessary wrapper and merge _dev_pm_opp_find_and_remove_table() with dev_pm_opp_remove_table(). Tested-by: Rajendra Nayak <rnayak@codeaurora.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
parent
f3364e17d5
commit
8aaf6264fc
4 changed files with 10 additions and 16 deletions
|
@ -2395,7 +2395,14 @@ int dev_pm_opp_unregister_notifier(struct device *dev,
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(dev_pm_opp_unregister_notifier);
|
EXPORT_SYMBOL(dev_pm_opp_unregister_notifier);
|
||||||
|
|
||||||
void _dev_pm_opp_find_and_remove_table(struct device *dev)
|
/**
|
||||||
|
* dev_pm_opp_remove_table() - Free all OPPs associated with the device
|
||||||
|
* @dev: device pointer used to lookup OPP table.
|
||||||
|
*
|
||||||
|
* Free both OPPs created using static entries present in DT and the
|
||||||
|
* dynamically added entries.
|
||||||
|
*/
|
||||||
|
void dev_pm_opp_remove_table(struct device *dev)
|
||||||
{
|
{
|
||||||
struct opp_table *opp_table;
|
struct opp_table *opp_table;
|
||||||
|
|
||||||
|
@ -2420,16 +2427,4 @@ void _dev_pm_opp_find_and_remove_table(struct device *dev)
|
||||||
/* Drop reference taken while the OPP table was added */
|
/* Drop reference taken while the OPP table was added */
|
||||||
dev_pm_opp_put_opp_table(opp_table);
|
dev_pm_opp_put_opp_table(opp_table);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* dev_pm_opp_remove_table() - Free all OPPs associated with the device
|
|
||||||
* @dev: device pointer used to lookup OPP table.
|
|
||||||
*
|
|
||||||
* Free both OPPs created using static entries present in DT and the
|
|
||||||
* dynamically added entries.
|
|
||||||
*/
|
|
||||||
void dev_pm_opp_remove_table(struct device *dev)
|
|
||||||
{
|
|
||||||
_dev_pm_opp_find_and_remove_table(dev);
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(dev_pm_opp_remove_table);
|
EXPORT_SYMBOL_GPL(dev_pm_opp_remove_table);
|
||||||
|
|
|
@ -124,7 +124,7 @@ void _dev_pm_opp_cpumask_remove_table(const struct cpumask *cpumask,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
_dev_pm_opp_find_and_remove_table(cpu_dev);
|
dev_pm_opp_remove_table(cpu_dev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -616,7 +616,7 @@ free_microvolt:
|
||||||
*/
|
*/
|
||||||
void dev_pm_opp_of_remove_table(struct device *dev)
|
void dev_pm_opp_of_remove_table(struct device *dev)
|
||||||
{
|
{
|
||||||
_dev_pm_opp_find_and_remove_table(dev);
|
dev_pm_opp_remove_table(dev);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(dev_pm_opp_of_remove_table);
|
EXPORT_SYMBOL_GPL(dev_pm_opp_of_remove_table);
|
||||||
|
|
||||||
|
|
|
@ -217,7 +217,6 @@ void _get_opp_table_kref(struct opp_table *opp_table);
|
||||||
int _get_opp_count(struct opp_table *opp_table);
|
int _get_opp_count(struct opp_table *opp_table);
|
||||||
struct opp_table *_find_opp_table(struct device *dev);
|
struct opp_table *_find_opp_table(struct device *dev);
|
||||||
struct opp_device *_add_opp_dev(const struct device *dev, struct opp_table *opp_table);
|
struct opp_device *_add_opp_dev(const struct device *dev, struct opp_table *opp_table);
|
||||||
void _dev_pm_opp_find_and_remove_table(struct device *dev);
|
|
||||||
struct dev_pm_opp *_opp_allocate(struct opp_table *opp_table);
|
struct dev_pm_opp *_opp_allocate(struct opp_table *opp_table);
|
||||||
void _opp_free(struct dev_pm_opp *opp);
|
void _opp_free(struct dev_pm_opp *opp);
|
||||||
int _opp_compare_key(struct dev_pm_opp *opp1, struct dev_pm_opp *opp2);
|
int _opp_compare_key(struct dev_pm_opp *opp1, struct dev_pm_opp *opp2);
|
||||||
|
|
Loading…
Add table
Reference in a new issue