[PATCH 01/11] [POWERPC] Add 'machine: ...' line to common show_cpuinfo()

Stephen Rothwell sfr at canb.auug.org.au
Wed Oct 24 17:11:29 EST 2007


On Wed, 24 Oct 2007 01:13:09 +0200 Marian Balakowicz <m8 at semihalf.com> 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:

		if (model)

> +		seq_printf(m, "machine\t\t: %s\n", model);

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20071024/d58482e9/attachment.pgp>


More information about the Linuxppc-dev mailing list