[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <91c85c92-573f-4ddd-9939-628b9619d733@sirena.org.uk>
Date: Thu, 28 Nov 2024 12:54:46 +0000
From: Mark Brown <broonie@...nel.org>
To: Cosmin Tanislav <demonsingur@...il.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J . Wysocki" <rafael@...nel.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] regmap: detach regmap from dev on regmap_exit
On Wed, Nov 27, 2024 at 11:22:31PM +0200, Cosmin Tanislav wrote:
> At the end of __regmap_init(), if dev is not NULL, regmap_attach_dev()
> is called, which adds a devres reference to the regmap, to be able to
> retrieve a dev's regmap by name using dev_get_regmap().
>
> When calling regmap_exit, the opposite does not happen, and the
> reference is kept until the dev is detached.
>
> Add a regmap_detach_dev() function, export it and call it in
> regmap_exit(), to make sure that the devres reference is not kept.
>
> V2:
> * switch to static function
As covered in submitting-patches.rst the inter version changelog should
go after the --- so it is automatically discarded by tooling.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists