mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
ASoC: Tegra: Move utilities to separate module
The utilities will be required by every machine driver. Including the utility object directly into every machine driver causes a build failure if the modules are actually built into the kernel, since each will define the symbols exported by the utility file. Solve this by moving the utility object into a separate module. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
committed by
Sameer Pujar
parent
4703f22e92
commit
4f00d6b233
@@ -101,6 +101,7 @@ int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(tegra_asoc_utils_set_rate);
|
||||||
|
|
||||||
int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data,
|
int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data,
|
||||||
struct device *dev)
|
struct device *dev)
|
||||||
@@ -139,6 +140,7 @@ err_put_pll_a:
|
|||||||
err:
|
err:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(tegra_asoc_utils_init);
|
||||||
|
|
||||||
void tegra_asoc_utils_fini(struct tegra_asoc_utils_data *data)
|
void tegra_asoc_utils_fini(struct tegra_asoc_utils_data *data)
|
||||||
{
|
{
|
||||||
@@ -146,4 +148,8 @@ void tegra_asoc_utils_fini(struct tegra_asoc_utils_data *data)
|
|||||||
clk_put(data->clk_pll_a_out0);
|
clk_put(data->clk_pll_a_out0);
|
||||||
clk_put(data->clk_pll_a);
|
clk_put(data->clk_pll_a);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(tegra_asoc_utils_fini);
|
||||||
|
|
||||||
|
MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
|
||||||
|
MODULE_DESCRIPTION("Tegra ASoC utility code");
|
||||||
|
MODULE_LICENSE("GPL");
|
||||||
|
|||||||
Reference in New Issue
Block a user