mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
ASoC: tegra-alt: remove devm_clk_put() APIs
Clock resource is associated with a device and when the device is unbound, the resource is freed. Drivers get the clock handle by using devm_clk_get(). No need for an explicit devm_clk_put() to release the clock, this is handled automatically when the device lifetime ends. Bug 200346429 Change-Id: I0885723e3a9a3fb41e54524ddacc3415f571576c Signed-off-by: Sameer Pujar <spujar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1574311 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Mohan Kumar D <mkumard@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
This commit is contained in:
@@ -77,10 +77,6 @@ struct tegra_asoc_audio_clock_info {
|
||||
u32 clk_rates[MAX_NUM_RATES];
|
||||
};
|
||||
|
||||
struct clk *tegra_alt_asoc_utils_get_clk(struct device *dev,
|
||||
bool dev_id,
|
||||
const char *clk_name);
|
||||
void tegra_alt_asoc_utils_clk_put(struct device *dev, struct clk *clk);
|
||||
int tegra_alt_asoc_utils_set_rate(struct tegra_asoc_audio_clock_info *data,
|
||||
int srate,
|
||||
int mclk,
|
||||
@@ -90,7 +86,6 @@ void tegra_alt_asoc_utils_lock_clk_rate(
|
||||
int lock);
|
||||
int tegra_alt_asoc_utils_init(struct tegra_asoc_audio_clock_info *data,
|
||||
struct device *dev, struct snd_soc_card *card);
|
||||
void tegra_alt_asoc_utils_fini(struct tegra_asoc_audio_clock_info *data);
|
||||
|
||||
int tegra_alt_asoc_utils_set_extern_parent(
|
||||
struct tegra_asoc_audio_clock_info *data, const char *parent);
|
||||
|
||||
Reference in New Issue
Block a user