Commit e2c187a6 authored by Codrut Grosu's avatar Codrut Grosu Committed by Mark Brown

ASoC: tegra: Remove unnecessary 'out of memory' message

This was reported by checkpatch.pl
Signed-off-by: default avatarCodrut GROSU <codrut.cristian.grosu@gmail.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c1ae3cfa
...@@ -318,7 +318,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev) ...@@ -318,7 +318,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
ac97 = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_ac97), ac97 = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_ac97),
GFP_KERNEL); GFP_KERNEL);
if (!ac97) { if (!ac97) {
dev_err(&pdev->dev, "Can't allocate tegra20_ac97\n");
ret = -ENOMEM; ret = -ENOMEM;
goto err; goto err;
} }
......
...@@ -142,7 +142,6 @@ static int tegra20_das_probe(struct platform_device *pdev) ...@@ -142,7 +142,6 @@ static int tegra20_das_probe(struct platform_device *pdev)
das = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_das), GFP_KERNEL); das = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_das), GFP_KERNEL);
if (!das) { if (!das) {
dev_err(&pdev->dev, "Can't allocate tegra20_das\n");
ret = -ENOMEM; ret = -ENOMEM;
goto err; goto err;
} }
......
...@@ -345,7 +345,6 @@ static int tegra20_i2s_platform_probe(struct platform_device *pdev) ...@@ -345,7 +345,6 @@ static int tegra20_i2s_platform_probe(struct platform_device *pdev)
i2s = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_i2s), GFP_KERNEL); i2s = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_i2s), GFP_KERNEL);
if (!i2s) { if (!i2s) {
dev_err(&pdev->dev, "Can't allocate tegra20_i2s\n");
ret = -ENOMEM; ret = -ENOMEM;
goto err; goto err;
} }
......
...@@ -271,10 +271,9 @@ static int tegra20_spdif_platform_probe(struct platform_device *pdev) ...@@ -271,10 +271,9 @@ static int tegra20_spdif_platform_probe(struct platform_device *pdev)
spdif = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_spdif), spdif = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_spdif),
GFP_KERNEL); GFP_KERNEL);
if (!spdif) { if (!spdif)
dev_err(&pdev->dev, "Can't allocate tegra20_spdif\n");
return -ENOMEM; return -ENOMEM;
}
dev_set_drvdata(&pdev->dev, spdif); dev_set_drvdata(&pdev->dev, spdif);
spdif->clk_spdif_out = devm_clk_get(&pdev->dev, "spdif_out"); spdif->clk_spdif_out = devm_clk_get(&pdev->dev, "spdif_out");
......
...@@ -560,10 +560,8 @@ static int tegra30_ahub_probe(struct platform_device *pdev) ...@@ -560,10 +560,8 @@ static int tegra30_ahub_probe(struct platform_device *pdev)
ahub = devm_kzalloc(&pdev->dev, sizeof(struct tegra30_ahub), ahub = devm_kzalloc(&pdev->dev, sizeof(struct tegra30_ahub),
GFP_KERNEL); GFP_KERNEL);
if (!ahub) { if (!ahub)
dev_err(&pdev->dev, "Can't allocate tegra30_ahub\n");
return -ENOMEM; return -ENOMEM;
}
dev_set_drvdata(&pdev->dev, ahub); dev_set_drvdata(&pdev->dev, ahub);
ahub->soc_data = soc_data; ahub->soc_data = soc_data;
......
...@@ -385,7 +385,6 @@ static int tegra30_i2s_platform_probe(struct platform_device *pdev) ...@@ -385,7 +385,6 @@ static int tegra30_i2s_platform_probe(struct platform_device *pdev)
i2s = devm_kzalloc(&pdev->dev, sizeof(struct tegra30_i2s), GFP_KERNEL); i2s = devm_kzalloc(&pdev->dev, sizeof(struct tegra30_i2s), GFP_KERNEL);
if (!i2s) { if (!i2s) {
dev_err(&pdev->dev, "Can't allocate tegra30_i2s\n");
ret = -ENOMEM; ret = -ENOMEM;
goto err; goto err;
} }
......
...@@ -169,10 +169,8 @@ static int tegra_alc5632_probe(struct platform_device *pdev) ...@@ -169,10 +169,8 @@ static int tegra_alc5632_probe(struct platform_device *pdev)
alc5632 = devm_kzalloc(&pdev->dev, alc5632 = devm_kzalloc(&pdev->dev,
sizeof(struct tegra_alc5632), GFP_KERNEL); sizeof(struct tegra_alc5632), GFP_KERNEL);
if (!alc5632) { if (!alc5632)
dev_err(&pdev->dev, "Can't allocate tegra_alc5632\n");
return -ENOMEM; return -ENOMEM;
}
card->dev = &pdev->dev; card->dev = &pdev->dev;
platform_set_drvdata(pdev, card); platform_set_drvdata(pdev, card);
......
...@@ -225,10 +225,8 @@ static int tegra_max98090_probe(struct platform_device *pdev) ...@@ -225,10 +225,8 @@ static int tegra_max98090_probe(struct platform_device *pdev)
machine = devm_kzalloc(&pdev->dev, machine = devm_kzalloc(&pdev->dev,
sizeof(struct tegra_max98090), GFP_KERNEL); sizeof(struct tegra_max98090), GFP_KERNEL);
if (!machine) { if (!machine)
dev_err(&pdev->dev, "Can't allocate tegra_max98090\n");
return -ENOMEM; return -ENOMEM;
}
card->dev = &pdev->dev; card->dev = &pdev->dev;
platform_set_drvdata(pdev, card); platform_set_drvdata(pdev, card);
......
...@@ -170,10 +170,8 @@ static int tegra_rt5640_probe(struct platform_device *pdev) ...@@ -170,10 +170,8 @@ static int tegra_rt5640_probe(struct platform_device *pdev)
machine = devm_kzalloc(&pdev->dev, machine = devm_kzalloc(&pdev->dev,
sizeof(struct tegra_rt5640), GFP_KERNEL); sizeof(struct tegra_rt5640), GFP_KERNEL);
if (!machine) { if (!machine)
dev_err(&pdev->dev, "Can't allocate tegra_rt5640\n");
return -ENOMEM; return -ENOMEM;
}
card->dev = &pdev->dev; card->dev = &pdev->dev;
platform_set_drvdata(pdev, card); platform_set_drvdata(pdev, card);
......
...@@ -120,10 +120,8 @@ static int tegra_sgtl5000_driver_probe(struct platform_device *pdev) ...@@ -120,10 +120,8 @@ static int tegra_sgtl5000_driver_probe(struct platform_device *pdev)
machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_sgtl5000), machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_sgtl5000),
GFP_KERNEL); GFP_KERNEL);
if (!machine) { if (!machine)
dev_err(&pdev->dev, "Can't allocate tegra_sgtl5000 struct\n");
return -ENOMEM; return -ENOMEM;
}
card->dev = &pdev->dev; card->dev = &pdev->dev;
platform_set_drvdata(pdev, card); platform_set_drvdata(pdev, card);
......
...@@ -128,10 +128,8 @@ static int tegra_wm8753_driver_probe(struct platform_device *pdev) ...@@ -128,10 +128,8 @@ static int tegra_wm8753_driver_probe(struct platform_device *pdev)
machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm8753), machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm8753),
GFP_KERNEL); GFP_KERNEL);
if (!machine) { if (!machine)
dev_err(&pdev->dev, "Can't allocate tegra_wm8753 struct\n");
return -ENOMEM; return -ENOMEM;
}
card->dev = &pdev->dev; card->dev = &pdev->dev;
platform_set_drvdata(pdev, card); platform_set_drvdata(pdev, card);
......
...@@ -248,10 +248,8 @@ static int tegra_wm8903_driver_probe(struct platform_device *pdev) ...@@ -248,10 +248,8 @@ static int tegra_wm8903_driver_probe(struct platform_device *pdev)
machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm8903), machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm8903),
GFP_KERNEL); GFP_KERNEL);
if (!machine) { if (!machine)
dev_err(&pdev->dev, "Can't allocate tegra_wm8903 struct\n");
return -ENOMEM; return -ENOMEM;
}
card->dev = &pdev->dev; card->dev = &pdev->dev;
platform_set_drvdata(pdev, card); platform_set_drvdata(pdev, card);
......
...@@ -77,10 +77,8 @@ static int tegra_wm9712_driver_probe(struct platform_device *pdev) ...@@ -77,10 +77,8 @@ static int tegra_wm9712_driver_probe(struct platform_device *pdev)
machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm9712), machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm9712),
GFP_KERNEL); GFP_KERNEL);
if (!machine) { if (!machine)
dev_err(&pdev->dev, "Can't allocate tegra_wm9712 struct\n");
return -ENOMEM; return -ENOMEM;
}
card->dev = &pdev->dev; card->dev = &pdev->dev;
platform_set_drvdata(pdev, card); platform_set_drvdata(pdev, card);
......
...@@ -123,10 +123,8 @@ static int tegra_snd_trimslice_probe(struct platform_device *pdev) ...@@ -123,10 +123,8 @@ static int tegra_snd_trimslice_probe(struct platform_device *pdev)
trimslice = devm_kzalloc(&pdev->dev, sizeof(struct tegra_trimslice), trimslice = devm_kzalloc(&pdev->dev, sizeof(struct tegra_trimslice),
GFP_KERNEL); GFP_KERNEL);
if (!trimslice) { if (!trimslice)
dev_err(&pdev->dev, "Can't allocate tegra_trimslice\n");
return -ENOMEM; return -ENOMEM;
}
card->dev = &pdev->dev; card->dev = &pdev->dev;
platform_set_drvdata(pdev, card); platform_set_drvdata(pdev, card);
......
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