Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2099173ybl; Thu, 30 Jan 2020 11:20:19 -0800 (PST) X-Google-Smtp-Source: APXvYqy5bhUaItB4VuR5rN5t9jnxpE5jruNJsxHrtNhgG1xQgMVbG4/b0NWRT2VhDD5ETxpdDn1d X-Received: by 2002:aca:4587:: with SMTP id s129mr3816366oia.124.1580412019204; Thu, 30 Jan 2020 11:20:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580412019; cv=none; d=google.com; s=arc-20160816; b=IayIa9tv5Sg0XuwQTWON8+mw7W87d2LLya7rrrhK34H1Q+v6FTRqVKXL0xpEIpP2Dt mY8d+svkDb1Z5q7VFs2VjHH4LJKYcVrlT08ruazlMMyJGA9DWX6ZTSGuWVWgAJ9rc4+O UGWouCLhJrxI6BNz1z4Pf8vPVZdq3nueOatxa2Yxf2QPX8eLEdY26fihWcQvOjrxZRMR lIJCDwYzoALAUwM39Xuv43bYMKX7THWAvvoaqKaKmJSeRJKQm71oRmIbhqrYJzvmWZ/v PM0AGfBOsSxTo1aBc5fsRJJLGEM/2Ub/GG6m5O0KNIgjDnGSxUtN22ut/k9zlQTc2Gtq LZ5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mw5MmaoDMYbmcZHM98ln2O/w2VhmizcT2xipQg2Bdok=; b=WFTgB5/mQK1W6hwvZilQcYfVg0x/1fOfRlf5twcXNaKVRYJtNocE9xHnm5IVeszUiL vZ4hv/D+1GDXevT2q01GU1wuKGBX5kgO+bHm9EpND+whs43yObDiIKypfG6fPnd6SWuf P9n02VhCwlyOQs5v9fbbDND9x6G9AwUeOyMgMZsg9FvjDjzpnuGNvhG1cQL1kNdLb00Z YUBbjloYDCjhvv6yJ83hyW4BzA5P5y1QbV8u4IsXBn8OmGxCZSDFOavi+QNm3BfpBYCg LI+QD5iz54iqPOrFy0XEU23/GSJ/VoEiypS5uAv70jMvzJsf4K1sSe3HQlMhdOl1B/nP iAnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RstR3Y8X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f187si3396311oia.218.2020.01.30.11.20.06; Thu, 30 Jan 2020 11:20:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RstR3Y8X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731112AbgA3Sp6 (ORCPT + 99 others); Thu, 30 Jan 2020 13:45:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:55566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728089AbgA3Spt (ORCPT ); Thu, 30 Jan 2020 13:45:49 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 55FD4205F4; Thu, 30 Jan 2020 18:45:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580409948; bh=AJU6CtPh0acVabB7XyOq/MYQTgmrFRKeMffxV6gDCu4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RstR3Y8XA5WSMMm2dvl2xPUmMeXnZDjV5o8nNO94/XQBjC9uJkyk/fpCHKxk8Irq6 vguFGmCC/HReSLXb4rF334VMDD8EGyLf1QQDSWa5+z05wXRZuEnk+YDlGcoD7wqY8L oYmcVTG176YmyITCzdx8RZ9xMbGfVVAsqVruJ7WI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chuhong Yuan , Nicolin Chen , Mark Brown , Sasha Levin Subject: [PATCH 5.4 056/110] ASoC: fsl_audmix: add missed pm_runtime_disable Date: Thu, 30 Jan 2020 19:38:32 +0100 Message-Id: <20200130183621.760869222@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200130183613.810054545@linuxfoundation.org> References: <20200130183613.810054545@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chuhong Yuan [ Upstream commit 77fffa742285f2b587648d6c72b5c705633f146f ] The driver forgets to call pm_runtime_disable in probe failure and remove. Add the missed calls to fix it. Signed-off-by: Chuhong Yuan Acked-by: Nicolin Chen Link: https://lore.kernel.org/r/20191203111303.12933-1-hslester96@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/fsl_audmix.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_audmix.c b/sound/soc/fsl/fsl_audmix.c index a1db1bce330fa..5faecbeb54970 100644 --- a/sound/soc/fsl/fsl_audmix.c +++ b/sound/soc/fsl/fsl_audmix.c @@ -505,15 +505,20 @@ static int fsl_audmix_probe(struct platform_device *pdev) ARRAY_SIZE(fsl_audmix_dai)); if (ret) { dev_err(dev, "failed to register ASoC DAI\n"); - return ret; + goto err_disable_pm; } priv->pdev = platform_device_register_data(dev, mdrv, 0, NULL, 0); if (IS_ERR(priv->pdev)) { ret = PTR_ERR(priv->pdev); dev_err(dev, "failed to register platform %s: %d\n", mdrv, ret); + goto err_disable_pm; } + return 0; + +err_disable_pm: + pm_runtime_disable(dev); return ret; } @@ -521,6 +526,8 @@ static int fsl_audmix_remove(struct platform_device *pdev) { struct fsl_audmix *priv = dev_get_drvdata(&pdev->dev); + pm_runtime_disable(&pdev->dev); + if (priv->pdev) platform_device_unregister(priv->pdev); -- 2.20.1