Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1561281pxv; Fri, 25 Jun 2021 16:26:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+YVPzPQzGbyJZ5D4PUgtKNOOx14IMPmV7i9X+6f0SVxtkvTU1uBPBIyCDR07lEyofnC5B X-Received: by 2002:a05:6402:90b:: with SMTP id g11mr18173355edz.336.1624663595080; Fri, 25 Jun 2021 16:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624663595; cv=none; d=google.com; s=arc-20160816; b=BkQdu2QlIVnjDEkBKEItj6t/agnKwfC8jx6XMQwbp9M7sNBXbZNeH4x4R9szF7CtYu gqea7tRvLaaW0rGsiwaeFuBFoKYj4PCa397uAPIrFDPet1sM199+/i6+iTa+U9bh6Qxc SS02TthxpvI9URUYLL2jPJSmBgDaCT94VnL/kOWjL5nF6dzbqzODsLxa6/ZCcaI3s11P ozdEkKoEtSxyrprj6ssaKlKh+z5Mx6sUwlCbPhHNJ7HQO/4K6ZhB2+nAQPxVWMbGhv0j +JmB6Y5XZcHmR8tWgtJfiQOGIYz+Gr2IJUI3uK42VNuF7dNuadZvFAl7CKS0JLvWqDSA ObSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=mQonIn9Qw3twlW/qLBFdWqCM5XghMvbXhD8NlsWqsag=; b=EYAnqwcGtHyYEkScp9hXdU3CFtn9LcO4r9h8q+UtuXQKOgUEx9mX+lTa2vclAY6TDn rQMZCkzUE1YSvO+6knNN6y3mpFLB9s4LrpGcZBOGwY8XqP8w9SAWsWT0x4yrGdht7VN2 a0Q0ESgABvRWzasVkGuvn1hIkbauIIfs9LlRPIFzFbnliwPuUho03GqXUdtrXtStcIwY KN2eCePAT2xRgwLg92c5+99+zR+l/srdtbOhi423Ckt2QU4rJMantVEKK3Ssu273qvDn leqI9yLGYFV1U74p4TxL5xFOWXQvb7qTBmkmGkxiv8ZVTERh+EabLP6K/LmrVeMeF9+B yzTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uQN+cWOy; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i9si7525419edu.471.2021.06.25.16.26.06; Fri, 25 Jun 2021 16:26:35 -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=@kernel.org header.s=k20201202 header.b=uQN+cWOy; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229982AbhFYX0K (ORCPT + 99 others); Fri, 25 Jun 2021 19:26:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:46862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229948AbhFYX0K (ORCPT ); Fri, 25 Jun 2021 19:26:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B7C4461949; Fri, 25 Jun 2021 23:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624663428; bh=mQonIn9Qw3twlW/qLBFdWqCM5XghMvbXhD8NlsWqsag=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=uQN+cWOy8JWXA7KBS3viSA5z48M+/YWZmMcYsnf71Rd7KXwC5LD8JgabgPgBTSKYW vZCLB+lea7pgMWPQovkgFqLXCB8mudQUuBEMvyE1Pd3yN5C0Q4RnMCZHPO0tq1z3ji UMgW2UbsQD04bOSeoVEPjKXD4jj7+nfZCBIfeQCeytzMBwKrXFuY2A/mxHsvyn4JxE vNGVdMWBHbkBbQ4H0KWPn0MCpezkZjRxcF3uO45JCXvW0FqUBupJIo0vm8GeRnA57j RYZHnuHCumHtDhuf6gCQhvrT7Nd6aS5zawAmPVCW5CRos6UEqYk5p2FT3qiIjnjRc1 Lgi2kDHbZneBg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210624084737.42336-1-aardelean@deviqon.com> References: <20210624084737.42336-1-aardelean@deviqon.com> Subject: Re: [PATCH] clk: tegra: clk-tegra124-dfll-fcpu: don't use devm functions for regulator From: Stephen Boyd Cc: pdeschrijver@nvidia.com, pgaikwad@nvidia.com, mturquette@baylibre.com, thierry.reding@gmail.com, jonathanh@nvidia.com, Alexandru Ardelean To: Alexandru Ardelean , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Date: Fri, 25 Jun 2021 16:23:46 -0700 Message-ID: <162466342649.3259633.211016165907683345@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Alexandru Ardelean (2021-06-24 01:47:37) > The purpose of the device-managed functions is to bind the life-time of an > object to that of a parent device object. >=20 > This is not the case for the 'vdd-cpu' regulator in this driver. A > reference is obtained via devm_regulator_get() and immediately released > with devm_regulator_put(). >=20 > In this case, the usage of devm_ functions is slightly excessive, as the > un-managed versions of these functions is a little cleaner (and slightly > more economical in terms of allocation). >=20 > This change converts the devm_regulator_{get,put}() to > regulator_{get,put}() in the get_alignment_from_regulator() function of > this driver. >=20 > Signed-off-by: Alexandru Ardelean > --- Applied to clk-next