Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2515650ybc; Sun, 17 Nov 2019 23:41:19 -0800 (PST) X-Google-Smtp-Source: APXvYqznRrn3Y50E5IGT5SpweA8tVrajknjr1UHgRI2yj/w5PS7k0AeaCbg0OpfipLPtENU0S/sm X-Received: by 2002:a17:906:3602:: with SMTP id q2mr10579262ejb.167.1574062879571; Sun, 17 Nov 2019 23:41:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574062879; cv=none; d=google.com; s=arc-20160816; b=SrM+mDn+7loG6FbkDbspg56G2c4oxNFjA7AgF8A10s97NfZ95pGyJmzhnLFYHPA9FN IKDdYfThnkfq4VNixfFtAQDCt01mjP/s+j2dgjCfd1Hii8MHeH8RbfH80kZV/pSlNrsP 4qxbVe/dXUdAnfBXZKO6cT6YoEWqhEsQsz1Dz4PU0JlK4HXw4EqhSv0SFizNErD0vwsx pPqkQShWLQ+0ep9CmIElvlDjAr7zbdL5QlYEdlqQ88RWU1UNqMQohtrXyYgh2ZfqGuN1 jKzK/lhXuf0pN3v5VLY8zPu+zZU7V0jeDXkGmYiGVFGDuKrgmHU4wW3BXU6e29nZZugS WnSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=xe+Hh36CXezhILfUXHbWAftsPx9okk6we2CTbfEFf9s=; b=EIQK+F0+t92G2Tn/1E25B1z7c53yuZMQ6KPyFCn3VUtWc56wq5fNNIWgRpMGBhtEf8 DnuuB4RX06GMLtaeG2s2KqoqJPqMfEygdO7zcjD+72Ec9Vhsucdmd7r32Z4M5HhaCSPr OnSqbKhgfQHFoXeaf9XwBiEqKc1MkeV4XonZ7B2FSk57YRQG3c5k0MhbsoYIR1/Emgz7 fRINBoZXb5VCvMjmVslMG3G7DRVLZGK5oXBYpF7BnqdA1WbtVLu5aV4XgKMdDINXKhjC qYMue6NZPiFeH9ZPEkHLX4NrkzC0Jq3WoqIICzRfUCW7JjKxCGPdUKC999dAY0cVtIjb zmmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=uEywBp9R; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id np1si11177033ejb.370.2019.11.17.23.40.55; Sun, 17 Nov 2019 23:41: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=fail header.i=@gmail.com header.s=20161025 header.b=uEywBp9R; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727054AbfKRHhU (ORCPT + 99 others); Mon, 18 Nov 2019 02:37:20 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:46810 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbfKRHhU (ORCPT ); Mon, 18 Nov 2019 02:37:20 -0500 Received: by mail-pj1-f67.google.com with SMTP id a16so1233995pjs.13 for ; Sun, 17 Nov 2019 23:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xe+Hh36CXezhILfUXHbWAftsPx9okk6we2CTbfEFf9s=; b=uEywBp9R7GGZbAzKwdAp8tFWJqgwu/JH5HVj9tW+e7xMxu2mtryi1sS83Qn0KWgBC+ lQDxYX+Cnfc+47KD5MeyLaWjQgPPcxnck+6F46FzQ66bkSe5D5F0x/ho0I8lGxhGPKHP pyr9nhutvn48T1wCAqqwcGzEfpfaS+AF30BYjLvzn3CVSOfYk4UKpBRtA668JhpHltoM F7vIpSDC/GN6dWG/X3pLxhZ5HjV9hxCHb7xyssC8cGsKmApjJrtLs4eFWbQlGnc1GtTb NTq1LuL7BUNhRrsGbnja7MPBHr9MDRp8WzrX/eLwT1p/3sh1IFSMEK2rMUE2MkoY+csp kN9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xe+Hh36CXezhILfUXHbWAftsPx9okk6we2CTbfEFf9s=; b=s9lxdGo5GOl00+OOpr61RMUjlaAm4ub4ABbZcImKAkldL475B3WaOFt517Yveoqtor siXrEBtJGht4uXuftGIkWikco3KQknJJvdmhfJTWMqPTI9OSYK5hhQJOML0tXjsfy8Qq j5OKq8CYEX5jsTtH4jlOQeyg3nwF+5AxJFstBkEJvg4euqde7C5uo+TN6PgSnBmjzZHc DlVE3RwcQOnLQM3UDTyP/E28RZ6nycKmFHgimV/i+geQfm6KMZp+BkskSeq12Lz4s9pG h42/HRyORdm7aN6sBnaO2q8WIP6moec2KH9UaoLxfClKYvM1a1slQr0rurpPusPgPmTr CCAA== X-Gm-Message-State: APjAAAVEo1xZdogDtZBIODVqKv8YV6TKFCMXgKbBXSas+vA4JhSkslxy 1Un6d+glzS4HMePjfdVzcHI= X-Received: by 2002:a17:90a:ca04:: with SMTP id x4mr38341944pjt.103.1574062639600; Sun, 17 Nov 2019 23:37:19 -0800 (PST) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id ay16sm23001911pjb.2.2019.11.17.23.37.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 23:37:18 -0800 (PST) From: Chuhong Yuan Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH] ASoC: wm5100: add missed pm_runtime_disable Date: Mon, 18 Nov 2019 15:37:07 +0800 Message-Id: <20191118073707.28298-1-hslester96@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver forgets to call pm_runtime_disable in remove and probe failure. Add the calls to fix it. Signed-off-by: Chuhong Yuan --- sound/soc/codecs/wm5100.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c index 4af0e519e623..91cc63c5a51f 100644 --- a/sound/soc/codecs/wm5100.c +++ b/sound/soc/codecs/wm5100.c @@ -2617,6 +2617,7 @@ static int wm5100_i2c_probe(struct i2c_client *i2c, return ret; err_reset: + pm_runtime_disable(&i2c->dev); if (i2c->irq) free_irq(i2c->irq, wm5100); wm5100_free_gpio(i2c); @@ -2640,6 +2641,7 @@ static int wm5100_i2c_remove(struct i2c_client *i2c) { struct wm5100_priv *wm5100 = i2c_get_clientdata(i2c); + pm_runtime_disable(&i2c->dev); if (i2c->irq) free_irq(i2c->irq, wm5100); wm5100_free_gpio(i2c); -- 2.24.0