From 41595d875403a2bf79433ed7697d87c4db012e1b Mon Sep 17 00:00:00 2001 From: Frank Chen Date: Tue, 9 Apr 2019 11:26:07 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/2093570 GVS: Gerrit_Virtual_Submit Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bhushan Rayrikar Reviewed-by: Vincent Chung Reviewed-by: Ian Kaszubski Reviewed-by: Joshua Widen Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/i2c/busses/i2c-tegra-vi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/i2c/busses') 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 @@ * Copyright (C) 2015 Google, Inc. * Author: Tomasz Figa * - * Copyright (C) 2010-2018 NVIDIA Corporation. All rights reserved. + * Copyright (C) 2010-2019 NVIDIA Corporation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -2116,7 +2116,6 @@ static int tegra_i2c_probe(struct platform_device *pdev) goto disable_clk; } i2c_dev->cont_id = i2c_dev->adapter.nr & PACKET_HEADER0_CONT_ID_MASK; - pm_runtime_enable(&i2c_dev->adapter.dev); tegra_i2c_gpio_init(i2c_dev); return 0; -- cgit v1.2.2