mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
i2c: tegra: drop duplicated code for assigning algo
This code is repeated in probe: i2c_dev->adapter.algo = &tegra_i2c_algo; Cc: Donglin Peng <[email protected]> Signed-off-by: Barry Song <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
35780e860f
commit
26f590e674
1 changed files with 0 additions and 1 deletions
|
|
@ -873,7 +873,6 @@ static int tegra_i2c_probe(struct platform_device *pdev)
|
|||
i2c_dev->adapter.class = I2C_CLASS_DEPRECATED;
|
||||
strlcpy(i2c_dev->adapter.name, "Tegra I2C adapter",
|
||||
sizeof(i2c_dev->adapter.name));
|
||||
i2c_dev->adapter.algo = &tegra_i2c_algo;
|
||||
i2c_dev->adapter.dev.parent = &pdev->dev;
|
||||
i2c_dev->adapter.nr = pdev->id;
|
||||
i2c_dev->adapter.dev.of_node = pdev->dev.of_node;
|
||||
|
|
|
|||
Loading…
Reference in a new issue