Re: [PATCH v3 07/12] rtc: rzn1: Replace remove callback with devm_add_action_or_reset()

Wolfram Sang <[email protected]>
Newsgroups org.kernel.vger.linux-renesas-soc,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-rtc
Message-ID <aoQ17OSf5_fGN95X@ninjato>
On Mon, Jul 06, 2026 at 06:51:33PM +0100, Prabhakar wrote:
> From: Lad Prabhakar <[email protected]>
> 
> Simplify the driver teardown by registering a managed cleanup action with
> devm_add_action_or_reset(). This eliminates the explicit probe error path
> and allows the .remove() callback to be dropped.
> 
> Signed-off-by: Lad Prabhakar <[email protected]>

Reviewed-by: Wolfram Sang <[email protected]>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmqENegACgkQFA3kzBSg
KbYL3xAAnXTTbIMKPiOxjw0K5A/IuoiHNDVE8zRP/VXQyUvXwDldLi9Z7zI0Fupn
z0DYBOHDD0o93n5MSFTPloHy1AswaBTE5AS2+SXXa93Y4UFwzlm01jerxEt7fPI9
Ub6Xdbh9nZMZWeU2D1N6v7oxIR9+ItjKVkRtuDaWwCV/+5+VVditTXHSYzajfCt0
PJYrc4ijnJNk9Zf+ihEh3hEbBr2sgWBhjMdxfeO5TvW55AssxjsmuBGhX36FqxeO
QFngNYdW6VMCLGQyz1C394cqPEjUlaty7dP03hWQQbSzF0HjJRWPd/U6OfpnsctX
CoGXh/vW21px1NtWwxGpwxCs2JiqWJWlkHElfOxhUSRJZ6XqTDax9JYOsEoxImaG
H/E5kn9NKHEhsXmmiNCehqE+mkGbsGa5KUF7IiCpaJT3dhbQ3eZr1h3HFfMIDNZ5
uUHN0K417SYwElidclNTg/dgTFOIBF5n3S7mzKVmsSlohCF7GWVZuFS74UA69sGX
mJtpBsh5KDvHoKSKsRrW4nf0yGGvFDyjuTpq9jebrRS6m6oHMn3EQEoasXAzJuDV
aLGueh8Xccud3bycTPIbzCzov6q7zKEixh6JX0A9IjPpumM9B2uut9uSOZvTOIIG
VISmDhuwyhrA1SzGq72S32gg8QuwX8m7ul7sDYBKVjDi7i6c4Ls=
=zkNk
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.