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