Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp340692pxx; Wed, 28 Oct 2020 06:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzZ+WWe7uhlhIson4UNcKobWvpSsi87IUQMNYLy4+Z5hwF//BQkRAoUBOBJ4VytBj0BoIa X-Received: by 2002:a17:906:2e08:: with SMTP id n8mr7409944eji.476.1603890987387; Wed, 28 Oct 2020 06:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603890987; cv=none; d=google.com; s=arc-20160816; b=zg2ha50ma2oO2HRsqMJX/ulo6pe0YUcAoRpjTwkmPNagyMCXGw1287g9/lozjmQGR3 DXW9aaeNkb/up6Cakij4XjDtzToqwZlVfasqvbjlFB2tFQNVMIBiFkfYEIdlnO+UT4ky BD/nqdU6afXE7nPzpDYKm/ObqMvv/aNWrnvxqcwz6x2NaE8CiY8TGKXoMKU2GqTZv5v5 mfMXt+yZqZN+yRG1u7aF77POJduCnfhi7/CnzZDDCD54Qo870izHAO4RvMLMq+YM7kpN nkHTOYMjli9VrR7IHskxXkyq7ee4kS7FJyYpXUp5iNHWD+k2l+BTtUsdZYWrQumMfkL/ Zlyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=J207ijh2Ft7sDLZ89xpl+qgGL4AptV7tgS+tByv4qF8=; b=QwvkjD3V1ORcc4KtTdbhhXvk+sX8xyxoMxwYtw180Aa+sqdGukDYc84TS2gPVYB+Xf sHmaNrVjHf5kRQLb6My/6GB9mcLak+RUYRknMoHX3SjCB7cV5qImENpSfOXLgCpjy3Eh ntUMkzD23QfBDWpf+8cBtaI67XGgt4GsJlGwvgDNMrxHuTPruH5zB/Zbg7eiH2Ibl0Gm KMzMo3iC0+WBm1pDFl4QGApKZFRKjZtlx4RlZ+MaHb9QljKlZnVWoypTpGsNlt3+/E5w J2pubWf1FM57+KyUxEBgksTYCEzNKWo5O4HwQo0vUWnV9TaR20vR9ZFFhJ6VmRpA8ik6 yNWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T7MtBDd0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lg14si2653130ejb.82.2020.10.28.06.16.04; Wed, 28 Oct 2020 06:16:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T7MtBDd0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1800303AbgJ0Pfj (ORCPT + 99 others); Tue, 27 Oct 2020 11:35:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:48638 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1799458AbgJ0Pbh (ORCPT ); Tue, 27 Oct 2020 11:31:37 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C5C6720728; Tue, 27 Oct 2020 15:31:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603812697; bh=XnCnx6CsSnCY43B8y6o8tDH/ubtil2Rlwzm36j+7UkY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T7MtBDd0uwMV08x2Pvdsr+On3jNadNB1Lnm8uiLE3oyRyzkOWaWEvt4UFWTzpcGwX nJerUSWjB1bDmdIcimhrr36RZNFEA179LGSthX6Us4TNmp0b/R0bTUIt7ZPjHNh+uu EF1lMIkoLwPAh03RoawFVnUF7IGwdDu2g6DIzsio= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Murphy , Mark Brown , Sasha Levin Subject: [PATCH 5.9 299/757] ASoC: tas2770: Fix unbalanced calls to pm_runtime Date: Tue, 27 Oct 2020 14:49:09 +0100 Message-Id: <20201027135504.584392432@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135450.497324313@linuxfoundation.org> References: <20201027135450.497324313@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Murphy [ Upstream commit d3d71c99b541040da198f43da3bbd85d8e9598cb ] Fix the unbalanced call to the pm_runtime_disable when removing the module. pm_runtime_enable is not called nor is the pm_runtime setup in the code. Remove the i2c_remove function and the pm_runtime_disable. Fixes: 1a476abc723e6 ("tas2770: add tas2770 smart PA kernel driver") Signed-off-by: Dan Murphy Link: https://lore.kernel.org/r/20200918190548.12598-5-dmurphy@ti.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/tas2770.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sound/soc/codecs/tas2770.c b/sound/soc/codecs/tas2770.c index 15cdd8b11a67a..3226c6d4493eb 100644 --- a/sound/soc/codecs/tas2770.c +++ b/sound/soc/codecs/tas2770.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -781,13 +780,6 @@ static int tas2770_i2c_probe(struct i2c_client *client, return result; } -static int tas2770_i2c_remove(struct i2c_client *client) -{ - pm_runtime_disable(&client->dev); - return 0; -} - - static const struct i2c_device_id tas2770_i2c_id[] = { { "tas2770", 0}, { } @@ -808,7 +800,6 @@ static struct i2c_driver tas2770_i2c_driver = { .of_match_table = of_match_ptr(tas2770_of_match), }, .probe = tas2770_i2c_probe, - .remove = tas2770_i2c_remove, .id_table = tas2770_i2c_id, }; -- 2.25.1