Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5615147img; Wed, 27 Mar 2019 11:45:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3kk1I8TeWvqMKV8XUgHoL/0o8u/VWjut8RW37C7gXJdp/6AC+OeUCWhto5yMoZvbMmktX X-Received: by 2002:a17:902:16a4:: with SMTP id h33mr1790113plh.23.1553712347715; Wed, 27 Mar 2019 11:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553712347; cv=none; d=google.com; s=arc-20160816; b=n0xkbM7rYN6SuHbH/14lFCWjXVX6E1KEt2zNfiJYCpMxSc7fExEiQfT6Ukywsa46Aw 1qM4unEdOHT4Jb8oWPHbm7plkqz4kShPBWWU6pilf8TzhzoC1lcCerXGGMnSF6auUyEe 6j7o00JNPQa8f6pD8Wuo5XwMJ1489OkDqq6MttY1JsufU16n2TVC7U/jx450WmovgaFE 0V2/WapyViyIiQ5JMObfQPEThB3jqKXYmg+F7f7b+rbaPqjEi6V87L3YqCGB8/N+yIqo ldQgU3vjlQZXJa445cPnRn6qEmLBGtmhMnv5bu4Za3iulaVeBdeoi1RbcbxwrQAwIStl Lxlg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=swMHgcUtIhggA9//AvGeUt+ZLJGpiFx0yCcHqFFFMOw=; b=z1L+yUeS+0xrXbk9cz96/gD+prsCXFyrBRssReA1DVz/AixQx1qf04dmbWeE2bjKs2 2rSRB586kapth8yViwDTlbmpUr1boCv0Q/4lLfwNguAT98Te25eSa1qD3auNo6/MEX2k O/eZPyfCYwhaJJOfmL13NlsvvUn1/0mZYZKigxREuHTEHOondwv9Xr1zmxrW67JpBvZr kwB5ZvTlwIRnupq4M1wAYgIEi4KLdKkp8aOYFm95Vm3X759ogK9JhzOly+x/2dS3BFWa /q/mOccBbJjg5Qv+TZEtpSFsL/SHJb/LtRCBiCL2sVwGpUiE/TuKa4Ae7TZzQbqhKIq4 lH/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nLPBikNZ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12si1945817pla.112.2019.03.27.11.45.32; Wed, 27 Mar 2019 11:45:47 -0700 (PDT) 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=nLPBikNZ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391846AbfC0SnC (ORCPT + 99 others); Wed, 27 Mar 2019 14:43:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:39644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390658AbfC0SVo (ORCPT ); Wed, 27 Mar 2019 14:21:44 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D44AF2082F; Wed, 27 Mar 2019 18:21:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710903; bh=yndFG5TDCiBAyRfMNpx2aFT8XMkFs6scNwzQFgVIs1g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nLPBikNZ9r7QzAsMT3sSf/wUrp1D5rG7fiCVSpq+2rVJCcP1ZIhiq4KQWSE+/Q65o +xppZ/bFUVfzll6r4gdZcw/z1dW2uDe7YUKXzAnUXtZgzQiM3ioi+tk86AJMadpP1W 9z1WNgwJ2L3R8B6OJiz3i0qHpz/xRzmza27qB3Ng= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Wen Yang , Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Sasha Levin Subject: [PATCH AUTOSEL 4.9 38/87] SoC: imx-sgtl5000: add missing put_device() Date: Wed, 27 Mar 2019 14:19:51 -0400 Message-Id: <20190327182040.17444-38-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327182040.17444-1-sashal@kernel.org> References: <20190327182040.17444-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wen Yang [ Upstream commit 8fa857da9744f513036df1c43ab57f338941ae7d ] The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Detected by coccinelle with the following warnings: ./sound/soc/fsl/imx-sgtl5000.c:169:1-7: ERROR: missing put_device; call of_find_device_by_node on line 105, but without a corresponding object release within this function. ./sound/soc/fsl/imx-sgtl5000.c:177:1-7: ERROR: missing put_device; call of_find_device_by_node on line 105, but without a corresponding object release within this function. Signed-off-by: Wen Yang Cc: Timur Tabi Cc: Nicolin Chen Cc: Xiubo Li Cc: Fabio Estevam Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: NXP Linux Team Cc: alsa-devel@alsa-project.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/imx-sgtl5000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c index b99e0b5e00e9..8e525f7ac08d 100644 --- a/sound/soc/fsl/imx-sgtl5000.c +++ b/sound/soc/fsl/imx-sgtl5000.c @@ -115,6 +115,7 @@ static int imx_sgtl5000_probe(struct platform_device *pdev) ret = -EPROBE_DEFER; goto fail; } + put_device(&ssi_pdev->dev); codec_dev = of_find_i2c_device_by_node(codec_np); if (!codec_dev) { dev_err(&pdev->dev, "failed to find codec platform device\n"); -- 2.19.1