diff options
author | Frank Chen <frankc@nvidia.com> | 2019-04-09 14:26:07 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-04-11 05:43:37 -0400 |
commit | 41595d875403a2bf79433ed7697d87c4db012e1b (patch) | |
tree | f62a33e6293cc05ddf2f86681ec70703e9744fed | |
parent | a981a7fb83cb76efd05cdbf964aa62d04801c538 (diff) |
driver: vii2c: Fix unbalanced pm_runtime_enable
Removing extra pm_runtime_enable call in probe()
to fix Unbalanced pm_runtime_enable kernel warnings.
Bug 200490028
Change-Id: I295fa2cc2eb5ebd4656e93b5418d1f181ad6c437
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2093570
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-by: Vincent Chung <vincentc@nvidia.com>
Reviewed-by: Ian Kaszubski <ikaszubski@nvidia.com>
Reviewed-by: Joshua Widen <jwiden@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r-- | drivers/i2c/busses/i2c-tegra-vi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-tegra-vi.c b/drivers/i2c/busses/i2c-tegra-vi.c index e39d7a41d..ed7ab7f93 100644 --- a/drivers/i2c/busses/i2c-tegra-vi.c +++ b/drivers/i2c/busses/i2c-tegra-vi.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * Copyright (C) 2015 Google, Inc. | 7 | * Copyright (C) 2015 Google, Inc. |
8 | * Author: Tomasz Figa <tfiga@chromium.org> | 8 | * Author: Tomasz Figa <tfiga@chromium.org> |
9 | * | 9 | * |
10 | * Copyright (C) 2010-2018 NVIDIA Corporation. All rights reserved. | 10 | * Copyright (C) 2010-2019 NVIDIA Corporation. All rights reserved. |
11 | * | 11 | * |
12 | * This software is licensed under the terms of the GNU General Public | 12 | * This software is licensed under the terms of the GNU General Public |
13 | * License version 2, as published by the Free Software Foundation, and | 13 | * License version 2, as published by the Free Software Foundation, and |
@@ -2116,7 +2116,6 @@ static int tegra_i2c_probe(struct platform_device *pdev) | |||
2116 | goto disable_clk; | 2116 | goto disable_clk; |
2117 | } | 2117 | } |
2118 | i2c_dev->cont_id = i2c_dev->adapter.nr & PACKET_HEADER0_CONT_ID_MASK; | 2118 | i2c_dev->cont_id = i2c_dev->adapter.nr & PACKET_HEADER0_CONT_ID_MASK; |
2119 | pm_runtime_enable(&i2c_dev->adapter.dev); | ||
2120 | tegra_i2c_gpio_init(i2c_dev); | 2119 | tegra_i2c_gpio_init(i2c_dev); |
2121 | 2120 | ||
2122 | return 0; | 2121 | return 0; |