On Fri, 10 Nov 2006 17:58:50 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> 
wrote:
>
> Adds an arch specific struct dev_sysdata to struct device. This enables
> architecture to add specific fields to every device in the system, like
> DMA operation pointers, NUMA node ID, firmware specific data, etc...
>
> Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]>

I would have done this by creating a single line asm-xxx/device.h containing

#include <asm-generic/device.h>

(except for asm-generic, of course)  and then as each architecture implements
its own dev_sysdata, it can flesh out its asm/device.h.

Also, I would use _ASM_<ARCH>_DEVICE_H, but thats just my preference.

Just suggestions.

--
Cheers,
Stephen Rothwell                    [EMAIL PROTECTED]
http://www.canb.auug.org.au/~sfr/

Attachment: pgpjphlbEnww7.pgp
Description: PGP signature

Reply via email to