Thread (31 messages) 31 messages, 5 authors, 2019-12-09

Re: [PATCH v6 1/7] thermal: sun8i: add thermal driver for H6/H5/H3/A64/A83T/R40

From: Maxime Ripard <mripard@kernel.org>
Date: 2019-11-27 17:35:51
Also in: linux-arm-kernel, linux-pm, lkml

On Wed, Nov 27, 2019 at 12:14:19PM +0100, Ondřej Jirman wrote:
quoted
+	/*
+	 * Avoid entering the interrupt handler, the thermal device is not
+	 * registered yet, we deffer the registration of the interrupt to
+	 * the end.
+	 */
+	ret = devm_request_threaded_irq(dev, irq, NULL,
+					sun8i_irq_thread,
+					IRQF_ONESHOT, "ths", tmdev);
+	if (ret)
+		return ret;
+
+	return ret;
I guess just return devm_request_threaded_irq(... ^
This is harder to extend though, so I'd keep the current construct
(with a return 0 though).

Thanks!
Maxime

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help