mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
ASoC: tegra: assume CONFIG_OF in tegra_asoc_utils_init
Tegra only supports, and always enables, device tree. Remove all runtime checks for DT support from the driver. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
committed by
Sameer Pujar
parent
43690785ee
commit
9222cccc87
@@ -176,11 +176,7 @@ int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data,
|
|||||||
data->soc = TEGRA_ASOC_UTILS_SOC_TEGRA20;
|
data->soc = TEGRA_ASOC_UTILS_SOC_TEGRA20;
|
||||||
else if (of_machine_is_compatible("nvidia,tegra30"))
|
else if (of_machine_is_compatible("nvidia,tegra30"))
|
||||||
data->soc = TEGRA_ASOC_UTILS_SOC_TEGRA30;
|
data->soc = TEGRA_ASOC_UTILS_SOC_TEGRA30;
|
||||||
else if (!dev->of_node)
|
|
||||||
/* non-DT is always Tegra20 */
|
|
||||||
data->soc = TEGRA_ASOC_UTILS_SOC_TEGRA20;
|
|
||||||
else
|
else
|
||||||
/* DT boot, but unknown SoC */
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
data->clk_pll_a = clk_get_sys(NULL, "pll_a");
|
data->clk_pll_a = clk_get_sys(NULL, "pll_a");
|
||||||
|
|||||||
Reference in New Issue
Block a user