Commit 79cf5918 authored by Prashant Gaikwad's avatar Prashant Gaikwad Committed by Stephen Warren

ASoC: tegra: remove auxdata

Configlink clock information is added to device tree. Get the clocks
using device node. Remove AUXDATA.
Signed-off-by: default avatarPrashant Gaikwad <pgaikwad@nvidia.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent 1e54f0a2
...@@ -299,15 +299,6 @@ static const char * const configlink_clocks[] = { ...@@ -299,15 +299,6 @@ static const char * const configlink_clocks[] = {
"spdif_in", "spdif_in",
}; };
struct of_dev_auxdata ahub_auxdata[] = {
OF_DEV_AUXDATA("nvidia,tegra30-i2s", 0x70080300, "tegra30-i2s.0", NULL),
OF_DEV_AUXDATA("nvidia,tegra30-i2s", 0x70080400, "tegra30-i2s.1", NULL),
OF_DEV_AUXDATA("nvidia,tegra30-i2s", 0x70080500, "tegra30-i2s.2", NULL),
OF_DEV_AUXDATA("nvidia,tegra30-i2s", 0x70080600, "tegra30-i2s.3", NULL),
OF_DEV_AUXDATA("nvidia,tegra30-i2s", 0x70080700, "tegra30-i2s.4", NULL),
{}
};
#define LAST_REG(name) \ #define LAST_REG(name) \
(TEGRA30_AHUB_##name + \ (TEGRA30_AHUB_##name + \
(TEGRA30_AHUB_##name##_STRIDE * TEGRA30_AHUB_##name##_COUNT) - 4) (TEGRA30_AHUB_##name##_STRIDE * TEGRA30_AHUB_##name##_COUNT) - 4)
...@@ -451,7 +442,7 @@ static int tegra30_ahub_probe(struct platform_device *pdev) ...@@ -451,7 +442,7 @@ static int tegra30_ahub_probe(struct platform_device *pdev)
* Ensure that here. * Ensure that here.
*/ */
for (i = 0; i < ARRAY_SIZE(configlink_clocks); i++) { for (i = 0; i < ARRAY_SIZE(configlink_clocks); i++) {
clk = clk_get_sys(NULL, configlink_clocks[i]); clk = clk_get(&pdev->dev, configlink_clocks[i]);
if (IS_ERR(clk)) { if (IS_ERR(clk)) {
dev_err(&pdev->dev, "Can't get clock %s\n", dev_err(&pdev->dev, "Can't get clock %s\n",
configlink_clocks[i]); configlink_clocks[i]);
...@@ -569,8 +560,7 @@ static int tegra30_ahub_probe(struct platform_device *pdev) ...@@ -569,8 +560,7 @@ static int tegra30_ahub_probe(struct platform_device *pdev)
goto err_pm_disable; goto err_pm_disable;
} }
of_platform_populate(pdev->dev.of_node, NULL, ahub_auxdata, of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev);
&pdev->dev);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment