Thread (30 messages) 30 messages, 4 authors, 2026-03-02

Re: [PATCH v19 01/10] power: reset: reboot-mode: Remove devres based allocations

From: Bartosz Golaszewski <brgl@kernel.org>
Date: 2026-01-06 12:31:53
Also in: linux-arm-msm, linux-devicetree, linux-pm, lkml

On Mon, Jan 5, 2026 at 6:54 PM Shivendra Pratap
[off-list ref] wrote:
quoted
quoted
        INIT_LIST_HEAD(&reboot->head);
@@ -82,19 +87,17 @@ int reboot_mode_register(struct reboot_mode_driver *reboot)
                if (strncmp(prop->name, PREFIX, len))
                        continue;

-               info = devm_kzalloc(reboot->dev, sizeof(*info), GFP_KERNEL);
+               if (of_property_read_u32(np, prop->name, &magic)) {
Please use device_property_read_u32() if you have access to a device struct.
Ack. Can it go in same patch with the fixes tag?
I would be fine with it but it's more a question to Sebastian as the maintainer.

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