mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 02:32:08 +03:00
sound: soc: tegra-alt: Use ARCH_TEGRA_210_SOC
Make use of ARCH_TEGRA_210_SOC instead of ARCH_TEGRA_21x_SOC so that we can get rid of redundant ARCH_TEGRA_21x_SOC. ARCH_TEGRA_210_SOC aligns to up-stream as well. Bug 1766370 Change-Id: I10a9d9bb63b1fbac358d85a228710a208d595281 Signed-off-by: Ishan Mittal <imittal@nvidia.com> Reviewed-on: http://git-master/r/1306757 Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
This commit is contained in:
committed by
Sameer Pujar
parent
5fe501ba84
commit
aa31cc268e
@@ -93,7 +93,7 @@ static int tegra210_i2s_set_clock_rate(struct device *dev, int clock_rate)
|
||||
dev_err(dev, "Can't set I2S sync clock rate\n");
|
||||
return ret;
|
||||
}
|
||||
#if !defined(CONFIG_ARCH_TEGRA_21x_SOC)
|
||||
#if !defined(CONFIG_ARCH_TEGRA_210_SOC)
|
||||
ret = clk_set_parent(i2s->clk_audio_sync,
|
||||
i2s->clk_i2s_sync);
|
||||
if (ret) {
|
||||
@@ -1032,7 +1032,7 @@ static int tegra210_i2s_platform_probe(struct platform_device *pdev)
|
||||
goto err_i2s_sync_clk_put;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ARCH_TEGRA_21x_SOC)
|
||||
#if defined(CONFIG_ARCH_TEGRA_210_SOC)
|
||||
i2s->clk_i2s_source = clk_get_sys(NULL, "pll_a_out0");
|
||||
#else
|
||||
i2s->clk_i2s_source = devm_clk_get(&pdev->dev, "pll_a_out0");
|
||||
@@ -1187,7 +1187,7 @@ err_pm_disable:
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
err_pll_a_out0_clk_put:
|
||||
if (!(tegra_platform_is_unit_fpga() || tegra_platform_is_fpga()))
|
||||
#if defined(CONFIG_ARCH_TEGRA_21x_SOC)
|
||||
#if defined(CONFIG_ARCH_TEGRA_210_SOC)
|
||||
clk_put(i2s->clk_i2s_source);
|
||||
#else
|
||||
devm_clk_put(&pdev->dev, i2s->clk_i2s_source);
|
||||
|
||||
Reference in New Issue
Block a user