aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-04-19 17:25:07 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-04-20 08:49:35 -0400
commitd9e3c4cc6801b03bce6dd31ba0e1a6acff8f8a1a (patch)
treee82f734773539f03b92eb52bb492114419747439
parent773b1d3d31bbf7257c48f6257b4ab06bcf4f5dfa (diff)
ASoC: Tegra: wm8903 probe: Don't call machine_is_*()
This machine driver is a platform driver, and hence will only be instantiated on the correct machines. Hence, there is no need to check the current machine during probe. (Applying Mark's TrimSlice review comments to the existing driver) Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/tegra/tegra_wm8903.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c
index 37f6010a9109..1eb0632db482 100644
--- a/sound/soc/tegra/tegra_wm8903.c
+++ b/sound/soc/tegra/tegra_wm8903.c
@@ -391,13 +391,6 @@ static __devinit int tegra_wm8903_driver_probe(struct platform_device *pdev)
391 struct tegra_wm8903_platform_data *pdata; 391 struct tegra_wm8903_platform_data *pdata;
392 int ret; 392 int ret;
393 393
394 if (!machine_is_harmony() && !machine_is_ventana() &&
395 !machine_is_seaboard() && !machine_is_kaen() &&
396 !machine_is_aebl()) {
397 dev_err(&pdev->dev, "Not running on a supported board!\n");
398 return -ENODEV;
399 }
400
401 pdata = pdev->dev.platform_data; 394 pdata = pdev->dev.platform_data;
402 if (!pdata) { 395 if (!pdata) {
403 dev_err(&pdev->dev, "No platform data supplied\n"); 396 dev_err(&pdev->dev, "No platform data supplied\n");