[PATCH] Use <linux/of_{platform, device}.h> and not <asm/...> variants.

Stephen Rothwell sfr at canb.auug.org.au
Wed Jan 9 10:29:12 EST 2008

On Tue, 08 Jan 2008 08:05:49 -0600 Jon Loeliger <jdl at jdl.com> wrote:
> By $DIETY, I'll obtain Janitorial Karma one way or another!


> The question now is, what next?  I'm thinking about
> picking on arch/sparc/, then drivers/ and sound/,
> and finally pick off /include.

arch/sparc{,64} should be easy if you have a cross compiler (though it
should work, Dave gets cranky if you break his tree :-))  Dave should just
take the patches if you do test compile them.  Tell him I sent you :-)

> To be honest, I'm not sure what the final /include
> structure is supposed to look like or do as both
> pairs of these files mutually include their counterpart.
> (i/l/of_d.h includes i/a/of_d.h which includes i/l/of_d.h)
> (i/l/of_p.h includes i/a/of_p.h which includes i/l/of_p.h)

The intention is that everyone only includes linux/of*.h (except for
linux/of*.h of course) at which point we should be able to remove the
includes of linux/of*.h from asm*/of*.h.

> But, of course, the various asm/of_{platform,device}.h files
> are different for each arch/, so I wasn't sure if the longer
> term plan had folding the arch variants straight into the
> include/linux/ version of the file or not.  Seems there will
> come a point when the sparc and powerpc variants will need
> to be more unified...

Some more unification should be possible over time, but that is much

Stephen Rothwell                    sfr at canb.auug.org.au
-------------- 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/20080109/2d49bd61/attachment.pgp>

More information about the Linuxppc-dev mailing list