Milton Miller wrote:
> On Wed Oct 24 17:11:29 EST 2007, Stephen Rothwell wrote:
>> On Wed, 24 Oct 2007 01:13:09 +0200 Marian Balakowicz wrote:
>>> + root = of_find_node_by_path("/");
>>> + if (root)
>>> + model = of_get_property(root, "model", NULL);
>>> +
David Gibson wrote:
> On Wed, Oct 24, 2007 at 01:13:09AM +0200, Marian Balakowicz wrote:
>> Print out '/model' property as a machine name in generic
>> show_cpuinfo() routine.
>
> There's no such thing as /model; subnodes and properties have a
> different namespace, so the root node, /, has a prop
On Wed Oct 24 17:11:29 EST 2007, Stephen Rothwell wrote:
> On Wed, 24 Oct 2007 01:13:09 +0200 Marian Balakowicz wrote:
>>
>> +root = of_find_node_by_path("/");
>> +if (root)
>> +model = of_get_property(root, "model", NULL);
>> +of_node_put(ro
On Wed, 24 Oct 2007 01:13:09 +0200 Marian Balakowicz <[EMAIL PROTECTED]> wrote:
>
> + root = of_find_node_by_path("/");
> + if (root)
> + model = of_get_property(root, "model", NULL);
> + of_node_put(root);
The paranoid part of me says:
On Wed, Oct 24, 2007 at 01:13:09AM +0200, Marian Balakowicz wrote:
> Print out '/model' property as a machine name in generic
> show_cpuinfo() routine.
Excellent! I was thinking about adding this just the other day since I
couldn't tell which kind of board I was on.
> Signed-off-by: Marian Balako
On Wed, Oct 24, 2007 at 01:13:09AM +0200, Marian Balakowicz wrote:
> Print out '/model' property as a machine name in generic
> show_cpuinfo() routine.
There's no such thing as /model; subnodes and properties have a
different namespace, so the root node, /, has a property named
'model'.
Yes, it's
Print out '/model' property as a machine name in generic
show_cpuinfo() routine.
Signed-off-by: Marian Balakowicz <[EMAIL PROTECTED]>
---
arch/powerpc/kernel/setup-common.c |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/kernel/setup-common.c
b/arch