]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: tegra: assume CONFIG_OF in tegra_asoc_utils_init
authorStephen Warren <swarren@nvidia.com>
Sat, 16 Feb 2013 00:07:30 +0000 (17:07 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Mar 2013 03:22:22 +0000 (11:22 +0800)
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>
sound/soc/tegra/tegra_asoc_utils.c

index ba419f86384d4cbd6bc568be7273e968100c7312..49861c6ed87410c9e838acdaee4af24d6bbef0d2 100644 (file)
@@ -176,11 +176,7 @@ int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data,
                data->soc = TEGRA_ASOC_UTILS_SOC_TEGRA20;
        else if (of_machine_is_compatible("nvidia,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
-               /* DT boot, but unknown SoC */
                return -EINVAL;
 
        data->clk_pll_a = clk_get_sys(NULL, "pll_a");