Re: [PATCH] maple: switch to dynamic root device
From: Artur Rojek
Date: Fri Apr 24 2026 - 15:27:54 EST
On 2026-04-24 12:41, Johan Hovold wrote:
Driver core expects devices to be dynamically allocated and will, for
example, complain loudly when no release function has been provided.
Use root_device_register() to allocate and register the root device
instead of open coding using a static device.
Note that this also fixes a reference leak in case device_register()
fails which may be flagged by static checkers.
Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
Hi Johan,
thanks for the patch. Verified on real hardware. LGTM:
Acked-by: Artur Rojek <contact@xxxxxxxxxxxxxx>