Module: xenomai-head Branch: master Commit: 91dfe69cec13e961bf14800f794c799e45c8862e URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=91dfe69cec13e961bf14800f794c799e45c8862e
Author: Wolfgang Grandegger <w...@grandegger.com> Date: Mon Jan 3 10:59:09 2011 +0100 wrappers: fixup "struct of_device" for RTCAN MPC5xxx driver Since 2.6.36, of_device is just an alias for platform_device. Signed-off-by: Wolfgang Grandegger <w...@grandegger.com> --- include/asm-powerpc/wrappers.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-powerpc/wrappers.h b/include/asm-powerpc/wrappers.h index 7f1214a..fb49307 100644 --- a/include/asm-powerpc/wrappers.h +++ b/include/asm-powerpc/wrappers.h @@ -191,4 +191,8 @@ typedef irq_handler_t rthal_irq_host_handler_t; #define mpc5xxx_get_bus_frequency(node) mpc52xx_find_ipb_freq(node) #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36) +#define of_device platform_device +#endif + #endif /* _XENO_ASM_POWERPC_WRAPPERS_H */ _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git