From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 6 Nov 2015 15:39:26 -0800 From: Maxime Ripard To: Stephen Boyd Cc: Mike Turquette , David Airlie , Thierry Reding , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com, Laurent Pinchart , Chen-Yu Tsai , Hans de Goede , Alexander Kaplan , Wynter Woods , Boris Brezillon , Thomas Petazzoni , Rob Clark , Daniel Vetter Subject: Re: [PATCH 01/19] clk: sunxi: Add display clock Message-ID: <20151106233926.GN6114@lukather> References: <1446214865-3972-1-git-send-email-maxime.ripard@free-electrons.com> <1446214865-3972-2-git-send-email-maxime.ripard@free-electrons.com> <20151030212902.GG19782@codeaurora.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="x+FS1wzm/v+2h3Q5" In-Reply-To: <20151030212902.GG19782@codeaurora.org> List-ID: --x+FS1wzm/v+2h3Q5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Stephen, Thanks for your feedback! On Fri, Oct 30, 2015 at 02:29:02PM -0700, Stephen Boyd wrote: > > + > > + mux =3D kzalloc(sizeof(*mux), GFP_KERNEL); > > + if (!mux) > [..] > > + goto free_reset; > > + } > > + > > + return; > > + > > +free_reset: > > + kfree(reset_data); > > +free_clk: > > + clk_unregister(clk); >=20 > We really ought to have a clk_composite_unregister() API. Can we? We can always unregister the clock itself, but do we have a way to retrieve the structure that has been allocated in there? (note that it also applies to the generic clocks registration: muxes, dividers, and so on). Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --x+FS1wzm/v+2h3Q5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWPTouAAoJEBx+YmzsjxAgFicP/joHV8pJXAO84DPD5ChA0KWe 0QuNbgg4lNQ87Gv9fJyYwQZgb3cM51LvM56N+Q4XrLB6NNPlNW/rx92WMbvfr6N0 FyEopiUPlsNU2AoYTJYno/1gpSQPHe3Da/jhpORek1rfgzJele82oJsOOJldVZMP Gz+ETn9HDJ7llSQ7CaANN+V9DaIQbJQOZx3gGPpWa3p8y/6fgfwocJBoxlnEHdX0 n2pQcqjWJHVGZaDrekFdFEUrUwPNtAPQ77Clog2qfapsrTWeom/wOMRuZVJ8ksyg 9QsPH/GiTg+gv5nd04G6qFsqnS1VmS3hhkSSCITUuEoCMHAwbzWFmHfqHBiZnITZ /JNY68ParmonKThAUziXttQKo5vlSJtT4X/IZL+RIS2RO7m8TBYUpTzqQfWoAl/+ 5s3wS4HzTezulST/AxA/BrMj28UfVM1ZShFkECceqqunaaB53d2WOnsGg3fC99tG P3nhi4fi/lPlnzWx/HeHK91dY51wt2LzaY5yMUDR5NUebwwXjOEdyWuMBxmGjlK6 /EOWf3y4jme4sV4ZD1vfjHA266twc/2hb6rxQhsahEtBr51F/3FWyEd/Xss+OdNU nIpRyQo2Vzl86tghDtIezbjrE6XeVfivGSMntavvSh79215bqPIV4YexU5Go0CzJ AM5o2560Ynpd8guXVwNb =WVEV -----END PGP SIGNATURE----- --x+FS1wzm/v+2h3Q5--