From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:42814 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728221AbeIHB74 (ORCPT ); Fri, 7 Sep 2018 21:59:56 -0400 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lihua Yao , Robert Jarzmik , Takashi Iwai Subject: [PATCH 4.18 091/145] ALSA: ac97: fix unbalanced pm_runtime_enable Date: Fri, 7 Sep 2018 23:09:17 +0200 Message-Id: <20180907210911.509395008@linuxfoundation.org> In-Reply-To: <20180907210903.617721278@linuxfoundation.org> References: <20180907210903.617721278@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: stable-owner@vger.kernel.org List-ID: 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Lihua Yao commit 250ea7c5f56e350cdafebe6b87478b00db4f7af8 upstream. Runtime PM is enabled at ac97_bus_probe() and should be disabled at ac97_bus_remove(). Fixes: 74426fbff66e ("ALSA: ac97: add an ac97 bus") Signed-off-by: Lihua Yao Acked-by: Robert Jarzmik Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/ac97/bus.c | 2 ++ 1 file changed, 2 insertions(+) --- a/sound/ac97/bus.c +++ b/sound/ac97/bus.c @@ -511,6 +511,8 @@ static int ac97_bus_remove(struct device if (ret == 0) ac97_put_disable_clk(adev); + pm_runtime_disable(dev); + return ret; }