Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263669
b: refs/heads/master
c: 406bd18
h: refs/heads/master
i:
  263667: 40fc635
v: v3
  • Loading branch information
John Bonesio authored and Ben Dooks committed Sep 6, 2011
1 parent 1f4a39f commit e9fbcd5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7a703aded97e01d7f4a6b8440a431117399666ba
refs/heads/master: 406bd18a7a39ef69f1d60a41d9de74932bcb98d4
12 changes: 12 additions & 0 deletions trunk/drivers/i2c/busses/i2c-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,17 @@ static int tegra_i2c_resume(struct platform_device *pdev)
}
#endif

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

static struct platform_driver tegra_i2c_driver = {
.probe = tegra_i2c_probe,
.remove = tegra_i2c_remove,
Expand All @@ -729,6 +740,7 @@ static struct platform_driver tegra_i2c_driver = {
.driver = {
.name = "tegra-i2c",
.owner = THIS_MODULE,
.of_match_table = tegra_i2c_of_match,
},
};

Expand Down

0 comments on commit e9fbcd5

Please sign in to comment.