Revert "ASoC: tegra_wm9712: assume CONFIG_OF"
Dan Willemsen [Tue, 20 Aug 2013 03:50:55 +0000 (20:50 -0700)]
This reverts commit 078e027386b2fdeb154393eb87a5b325d0937ed9.

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

sound/soc/tegra/tegra_wm9712.c

index ce98e5b..68d4240 100644 (file)
@@ -79,6 +79,11 @@ 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) {