On Wed, 2011-11-23 at 15:01 +0000, Pawel Moll wrote:
> diff --git a/arch/arm/mach-vexpress/v2m.c b/arch/arm/mach-vexpress/v2m.c
> index ee52b35..fd7ee1f 100644
> --- a/arch/arm/mach-vexpress/v2m.c
> +++ b/arch/arm/mach-vexpress/v2m.c
[...]
> +             node = of_find_compatible_node(NULL, NULL, "arm,sp810");
> +             if (node)
> +                     sysctl_base = of_iomap(node, 0);
> +
> +             err = of_property_read_string(of_aliases, "timer", &path);
> +             if (!err)
> +                     node = of_find_node_by_path(path);
> +             if (node) {
> +                     timer01_base = of_iomap(node, 0);
> +                     timer01_irq = irq_of_parse_and_map(node, 0);
> +             }

I've just realized that this fragment should actually look like that:

                node = of_find_compatible_node(NULL, NULL, "arm,sp810");
                sysctl_base = of_iomap(node, 0);
                
                err = of_property_read_string(of_aliases, "timer", &path);
                if (!err) {
                        node = of_find_node_by_path(path);
                        timer01_base = of_iomap(node, 0);
                        timer01_irq = irq_of_parse_and_map(node, 0);
                }

I will change that.

Cheers!

Pawel



_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to