Re: [PATCH v3 8/9] mips: generic: add fdt fixup for Realtek reference board

From: Marek Behún
Date: Thu Jun 27 2024 - 07:19:32 EST


On Thu, 27 Jun 2024 16:33:16 +1200
Chris Packham <chris.packham@xxxxxxxxxxxxxxxxxxx> wrote:

> +static __init int realtek_add_initrd(void *fdt)
> +{
> + int node, err;
> + u32 start, size;
> +
> + node = fdt_path_offset(fdt, "/chosen");
> + if (node < 0) {
> + pr_err("/chosen node not found\n");

linux/printk.h

> +static const struct of_device_id realtek_of_match[] __initconst = {
> + {
> + .compatible = "realtek,rtl9302",
> + },

One line instead of three?

Marek