Skip to content

Commit

Permalink
arm/tegra: Add more device tree nodes and clean up initialization
Browse files Browse the repository at this point in the history
Signed-off-by: John Bonesio <bones@secretlab.ca>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
glikely committed Aug 1, 2011
1 parent efbabb2 commit 9d6c2dd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sound/soc/tegra/tegra_das.c
Expand Up @@ -239,11 +239,24 @@ static int __devexit tegra_das_remove(struct platform_device *pdev)
return 0;
}

#if defined(CONFIG_OF)
/* Match table for of_platform binding */
static const struct of_device_id tegra_das_of_match[] __devinitconst = {
{ .compatible = "nvidia,tegra20-das", },
{},
};
MODULE_DEVICE_TABLE(of, tegra_das_of_match);
#else
#define tegra_das_of_match NULL
#endif


static struct platform_driver tegra_das_driver = {
.probe = tegra_das_probe,
.remove = __devexit_p(tegra_das_remove),
.driver = {
.name = DRV_NAME,
.of_match_table = tegra_das_of_match,
},
};

Expand Down

0 comments on commit 9d6c2dd

Please sign in to comment.