diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2014-01-10 18:46:15 +0530 |
---|---|---|
committer | Laxman Dewangan <ldewangan@nvidia.com> | 2014-01-13 00:25:58 -0800 |
commit | d2a9378f15a58c9e17543023291f62453be0016d (patch) | |
tree | 37ae0bf5f0dc911794faccc902024fee53c82bf4 /drivers/i2c | |
parent | 760f766349ee3f979ba7f516234f30796ec3e9ca (diff) |
i2c: tegra: remove bus number aliasing with node
Tegra I2C aliases the i2c node with bus number. As the i2c-core
framework supports the aliasing of bus number with device node,
it is not require to have this in driver code. Hence removing this
part of code.
Change-Id: I1a9e63c62a1f17716d587d4588d0d426d3c297f2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/354254
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index a6145ede5e17..df8f20303dc3 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -1410,7 +1410,7 @@ static int tegra_i2c_probe(struct platform_device *pdev) int ret = 0; const struct tegra_i2c_chipdata *chip_data = NULL; const struct of_device_id *match; - int bus_num; + int bus_num = -1; if (pdev->dev.of_node) { match = of_match_device(of_match_ptr(tegra_i2c_of_match), &pdev->dev); @@ -1421,9 +1421,6 @@ static int tegra_i2c_probe(struct platform_device *pdev) chip_data = match->data; if (!pdata) pdata = parse_i2c_tegra_dt(pdev); - bus_num = of_alias_get_id(pdev->dev.of_node, "i2c"); - if (bus_num < 0) - dev_warn(&pdev->dev, "No bus number specified from device-tree\n"); } else { chip_data = (struct tegra_i2c_chipdata *)pdev->id_entry->driver_data; bus_num = pdev->id; |