Patchwork [3/6] ASoC: tegra_wm9712: assume CONFIG_OF

login
register
mail settings
Submitter Stephen Warren
Date Feb. 16, 2013, 12:07 a.m.
Message ID <1360973255-344-3-git-send-email-swarren@wwwdotorg.org>
Download mbox | patch
Permalink /patch/220903/
State Not Applicable, archived
Headers show

Comments

Stephen Warren - Feb. 16, 2013, 12:07 a.m.
From: Stephen Warren <swarren@nvidia.com>

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>
---
 sound/soc/tegra/tegra_wm9712.c |    5 -----
 1 file changed, 5 deletions(-)
Lucas Stach - Feb. 18, 2013, 5:11 p.m.
Am Freitag, den 15.02.2013, 17:07 -0700 schrieb Stephen Warren:
> From: Stephen Warren <swarren@nvidia.com>
> 
> 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>

Acked-by: Lucas Stach <dev@lynxeye.de>

> ---
>  sound/soc/tegra/tegra_wm9712.c |    5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/sound/soc/tegra/tegra_wm9712.c b/sound/soc/tegra/tegra_wm9712.c
> index 68d4240..ce98e5b 100644
> --- a/sound/soc/tegra/tegra_wm9712.c
> +++ b/sound/soc/tegra/tegra_wm9712.c
> @@ -79,11 +79,6 @@ static int tegra_wm9712_driver_probe(struct platform_device *pdev)
>  	struct tegra_wm9712 *machine;
>  	int ret;
>  
> -	if (!pdev->dev.of_node) {
> -		dev_err(&pdev->dev, "No platform data supplied\n");
> -		return -EINVAL;
> -	}
> -
>  	machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm9712),
>  			       GFP_KERNEL);
>  	if (!machine) {


--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/sound/soc/tegra/tegra_wm9712.c b/sound/soc/tegra/tegra_wm9712.c
index 68d4240..ce98e5b 100644
--- a/sound/soc/tegra/tegra_wm9712.c
+++ b/sound/soc/tegra/tegra_wm9712.c
@@ -79,11 +79,6 @@  static int tegra_wm9712_driver_probe(struct platform_device *pdev)
 	struct tegra_wm9712 *machine;
 	int ret;
 
-	if (!pdev->dev.of_node) {
-		dev_err(&pdev->dev, "No platform data supplied\n");
-		return -EINVAL;
-	}
-
 	machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm9712),
 			       GFP_KERNEL);
 	if (!machine) {