[PATCH v19 01/10] power: reset: reboot-mode: Remove devres based allocations
Bartosz Golaszewski
brgl at kernel.org
Tue Jan 6 04:31:39 PST 2026
On Mon, Jan 5, 2026 at 6:54 PM Shivendra Pratap
<shivendra.pratap at oss.qualcomm.com> wrote:
>
> >>
> >> 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
More information about the linux-arm-kernel
mailing list