Thread (57 messages) 57 messages, 8 authors, 2015-11-19

[PATCH 01/19] clk: sunxi: Add display clock

From: Maxime Ripard <hidden>
Date: 2015-11-19 15:43:03
Also in: dri-devel, linux-clk, linux-devicetree, lkml

On Thu, Nov 12, 2015 at 12:31:54PM -0800, Stephen Boyd wrote:
On 11/06, Maxime Ripard wrote:
quoted
Hi Stephen,

Thanks for your feedback!

On Fri, Oct 30, 2015 at 02:29:02PM -0700, Stephen Boyd wrote:
quoted
quoted
+
+	mux = kzalloc(sizeof(*mux), GFP_KERNEL);
+	if (!mux)
[..]
quoted
+		goto free_reset;
+	}
+
+	return;
+
+free_reset:
+	kfree(reset_data);
+free_clk:
+	clk_unregister(clk);
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).
Yes we have a way. We've done the same sort of design for other
generic clocks. Do the __clk_get_hw() thing like in clk-divider.c
Ack. I'll cook up a patch for this then.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151119/2f6046ef/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help