Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp367084ybl; Tue, 7 Jan 2020 21:27:29 -0800 (PST) X-Google-Smtp-Source: APXvYqz85TPz7BjbGoYsk+eWInFgyEACdhW9HZV26DAnpdoDAbug4gHgJCL5T+Ku5/3yKUb0ZVzw X-Received: by 2002:a9d:3d0a:: with SMTP id a10mr2915594otc.327.1578461249262; Tue, 07 Jan 2020 21:27:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578461249; cv=none; d=google.com; s=arc-20160816; b=OOtjy2EQ8+MuHwpEipNv5L/thrGFI5SnPBJuISDLT5idb11tOCoW+9HGrie0MzyXuu hQMsIs2/Z0obfI7R4W3Ho/9GsWJ/8JUViTjBHeb3DNIVsW4lqwEgry3icCN0l/WwxXTa w9fSqtoU3kNzd90jy8/Y0gc4uukOXkLJWi8VdQ5NPTWB7FRtLDzw/VurbWJnufMDwnhp Avcxap/hozgowrILDVKeHsGms5b16yZrfvYs7wUu6hxWzu+hMNIo11NFf+07jsfcjDwa Xb0487nYYP9qMmWTdFAjUkFK6H5SQGHJH0HxbjrmFAoELJ7nYgrDaof/+qZctYFKsSIA cT+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=w+gsWa0qiEkQSfXhM8XZ4JIoQhx/eP1errE4+Rsqd/E=; b=pDPU+f1PodfsIV76nPQ9Qt9GBkBU2JBzX4Fzx09OiewcQVcXyyzWJoNGZnYmUK6JcB JPcoKJ+0pSwH2TJZqgO9boR7rJ3vG1wQLw6Q+ZWya5Gmn6gO3NZzKrgySquNubwwKYq2 JCBY2HfWWi9/CxZjemIrv8wqZ4bthpv3Sp3phNEmxH3uWXODleq6sFLLD/y+dQM8uEcW YqmR2by5fkB6fsx7SH7oj/Tr1bBbG7HhUdNPSfeACEe9HgouMy8BAyuEFUR/F8+w+kwa fcvDsSOox+1vLVQVxxJqPFDs3s6RlhDOlddalkrTX991KRNBX7bxfhFt7y6gYH/hNyd0 EGrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=l5xqIVub; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z62si1200870oiz.271.2020.01.07.21.27.16; Tue, 07 Jan 2020 21:27:29 -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=@nvidia.com header.s=n1 header.b=l5xqIVub; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726363AbgAHF0d (ORCPT + 99 others); Wed, 8 Jan 2020 00:26:33 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:12578 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbgAHF0d (ORCPT ); Wed, 8 Jan 2020 00:26:33 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 07 Jan 2020 21:25:43 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 07 Jan 2020 21:26:32 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 07 Jan 2020 21:26:32 -0800 Received: from [10.24.44.157] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 8 Jan 2020 05:26:25 +0000 Subject: Re: [PATCH v7 13/21] ASoC: tegra: Use device managed resource APIs to get the clock To: Sowjanya Komatineni , , , , , , , , , , , , CC: , , , , , , , , , References: <1578457515-3477-1-git-send-email-skomatineni@nvidia.com> <1578457515-3477-14-git-send-email-skomatineni@nvidia.com> From: Sameer Pujar Message-ID: <692ae1f9-ec01-f0e9-9b9a-a0eba3f32e44@nvidia.com> Date: Wed, 8 Jan 2020 10:56:23 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <1578457515-3477-14-git-send-email-skomatineni@nvidia.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1578461144; bh=w+gsWa0qiEkQSfXhM8XZ4JIoQhx/eP1errE4+Rsqd/E=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Transfer-Encoding: Content-Language; b=l5xqIVubpaNoOoNwLqOYOWizAjo7K2v7/n/TYg/81Uto2BR6zBJUqI9DlxaMjJ9wA qNCQ8QWGVjX/5ggpMQqPrx84daWX9h8Yfg9Nw+F69H/q182bWw6sjptir0uDVGUl1F WPm0NQrdqf8ynfLk/4vZmMzJuseNxW5GLzuB+GxlE+52la9KKO46N36K8+dhdXrlye o+pWY5V8K3jPo4izmxLsFjDOGBTcc3JEiY8kx94qLoupPz82nUG3wMepXT0w363yp5 NozOnsnXYvk+uQMVc7bMKe3Cro//GQ8qW4JlmU6qT1fb9fD1hjeJKkY4264KotxBjY zTNOTVdBHQjZw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/8/2020 9:55 AM, Sowjanya Komatineni wrote: > tegra_asoc_utils uses clk_get() and clk_put() to get the clock > and to free them explicitly. > > This patch updates it to use device managed resource API > devm_clk_get() so the clock will be automatically released and freed > when the device is unbound and removes tegra_asoc_utils_fini() as > its no longer needed. > > Tested-by: Dmitry Osipenko > Reviewed-by: Dmitry Osipenko > Signed-off-by: Sowjanya Komatineni Reviewed-by: Sameer Pujar > --- > sound/soc/tegra/tegra_alc5632.c | 7 +------ > sound/soc/tegra/tegra_asoc_utils.c | 34 +++++++--------------------------- > sound/soc/tegra/tegra_asoc_utils.h | 1 - > sound/soc/tegra/tegra_max98090.c | 22 ++++++---------------- > sound/soc/tegra/tegra_rt5640.c | 22 ++++++---------------- > sound/soc/tegra/tegra_rt5677.c | 7 +------ > sound/soc/tegra/tegra_sgtl5000.c | 7 +------ > sound/soc/tegra/tegra_wm8753.c | 22 ++++++---------------- > sound/soc/tegra/tegra_wm8903.c | 22 ++++++---------------- > sound/soc/tegra/tegra_wm9712.c | 8 ++------ > sound/soc/tegra/trimslice.c | 18 ++++-------------- > 11 files changed, 40 insertions(+), 130 deletions(-) . . .