Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2262851pxb; Mon, 12 Apr 2021 20:00:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzURA3ypLESrJOGTcmjlJduV62rDSfhFhZmyDIGdGdkb+7qP5qu2RDvKUV+vRvtkFeUdJme X-Received: by 2002:a17:907:9691:: with SMTP id hd17mr6766982ejc.205.1618282857214; Mon, 12 Apr 2021 20:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618282857; cv=none; d=google.com; s=arc-20160816; b=wrrJ1ZYTvHPCU5T5BMTdPDADAxOU2QJQkhCEO8JIp1f9ftn/PX/Z+jbRYg49HPppL+ qxDPq/aWvj0XjCH2k4ydpJxPZlZkJ6vUQ/UWHxEBuqE/n/SGlRZI4PogQg6yehwuLwxl tdZAuopt7tq2CWEeC84lsRPAbtAt455JP/gpwWZf/ZvDmNFYtz3z7qw1Uw1q7MbGey65 WmIaRTXqKKHWDk2uexoo47rffw11ciAZS5f5T97t/jY7x41fritsOpIC4AyYiTl5MNia wG0TIRFCjlXnJdhWds2vNxohCEnCm+HW/Z0wZs11vRRUHhuDOfmz1ji8V6omeyjG52TP f9Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=CHE3PEKmt4PiYb+8QucOok1H1iAClDgNrdUbB5VajiU=; b=tXKyrSpZ3A4eCr863FaShxSlTjQRX7zV8Luq4ewiCPY/DC2M106WMNZk3w8RfXgtkO OvDpRIM8vAjZyKjV16NgLSnbypS4RolFiIBRPMf9xFHMzHP4VB0IL0Sp+k/Bkveo1OsY remZw/RjaDrp7o45dhgXBcd3h9UMET+FlBiftQcOMgrkGm2pm0PoLyb83EzHqGVBSzxn 0Ebgu5LYPGZaJdyfWcYHgZ+TDFuZVr3GSy0wQltYNLiVxIZS5/HyqxCieihorVHegl3+ OtYj9H9A98hbl3W0ItZp8hzyBwpZQ/EyeCEuqo/LX9rN5l0q75HMOcGSts5SbLr9n6GU J8yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y1IBVfNn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si9345331ejj.404.2021.04.12.20.00.33; Mon, 12 Apr 2021 20:00:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y1IBVfNn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241856AbhDLN4M (ORCPT + 99 others); Mon, 12 Apr 2021 09:56:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238999AbhDLN4L (ORCPT ); Mon, 12 Apr 2021 09:56:11 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE6D0C061574 for ; Mon, 12 Apr 2021 06:55:53 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id w3so20444360ejc.4 for ; Mon, 12 Apr 2021 06:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CHE3PEKmt4PiYb+8QucOok1H1iAClDgNrdUbB5VajiU=; b=Y1IBVfNnkpqfWHMc9n+xO7iRonUwPUxYkDvVp/GdMcKNdsY6xsX4RkediQ+glSWwu4 J1eSFCpPi16FdZGI9QnJG4yuXnCfdvg6oLhT2ZvlrmrRqVIP6YxNBX6uWE6zT8VxezqI 7KgZMSwOpZBHYXYYBp/AqRnbV9vkfUudvOX7ZcVXUcLR9WpUnbLmaP/gzdQTEgbZwkyt OO3DkTHbjBoDB4uewLLCS7C6NglKjPJNcwYFPUAmYJE8rzaRoIJvKTE2naR5A++eC7r3 hNpeXrHvGwTAHgOJPRV5GoN8p83v7s7kuR4JYBhk1/poI1Szgi7yP3KbTAQ5o3Otfzeu cDNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CHE3PEKmt4PiYb+8QucOok1H1iAClDgNrdUbB5VajiU=; b=MZcOlVMB+BVcy4p6/bPpqPySE38TKpuRqbzjuBT/RKJdTKVEOEHE/5TPi3O3y41+x+ agRxmHeZchbD2vnJj2D7CZ13daIehmGwnJQFUJe+MkHcx5XTikBpnmuElKZHusiRcBZi VbadRNClHErN92iXNSJ4DDrb/XCyD8uk59xWC6N6yk64EuryDQI/7WRQSMdAVHLuv4Wf qE6sjLerjPf4LDD+nOlwXBsIYbHuhqXucN8orr019jVC2T59JBb0QgRY9ia+PTv2Megb sa2pPoro/KMJmzWLGIvAEKey3kCjvl/Gz+oN6/OmmyPUmfbkXSwsbOxhA+Ihlt9hlq/i YVkw== X-Gm-Message-State: AOAM533okp2SpvlevuJ1wDBERHBqzgGdMgTaHBjSOllAWWwM7kbQB/Cs d5wqoK8DWK/cR3+d3GnfU5IbbNhx0JaZXQ== X-Received: by 2002:a17:906:9a81:: with SMTP id ag1mr18018154ejc.464.1618235752397; Mon, 12 Apr 2021 06:55:52 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id q16sm5867591ejd.15.2021.04.12.06.55.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Apr 2021 06:55:51 -0700 (PDT) Subject: Re: [PATCH 4/5] ASoC: lpass: use the clock provider API To: Jerome Brunet , Mark Brown , Liam Girdwood Cc: Stephen Boyd , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20210410111356.467340-1-jbrunet@baylibre.com> <20210410111356.467340-5-jbrunet@baylibre.com> <0c8c3b5d-891a-9bfa-3bbc-4982542df38a@linaro.org> <1jmtu38znu.fsf@starbuckisacylon.baylibre.com> From: Srinivas Kandagatla Message-ID: <9d56c9ea-a64a-2939-1bce-dcd40ca16b40@linaro.org> Date: Mon, 12 Apr 2021 14:55:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1jmtu38znu.fsf@starbuckisacylon.baylibre.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/04/2021 13:17, Jerome Brunet wrote: >>> - return of_clk_add_provider(np, of_clk_src_simple_get, va->hw.clk); >>> + return devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, &va->hw); >> Now that we convert this to devm, You missed error path and driver remove >> where we delete clk provider. This should be removed as well as part of >> this patch. > Indeed. I should not have switched to devm here - It was not really the > purpose of the patch. Habits I guess. > > Do you prefer I stick with devm (with the suggested fix) or revert to the > no-devm way for the v2 ? It makes no difference to me TBH. devm should be good. --srini >