Module: xenomai-2.4
Branch: master
Commit: c693d69362f53bb5d94c5fe1ed83508e4a35aaaa
URL:    
http://git.xenomai.org/?p=xenomai-2.4.git;a=commit;h=c693d69362f53bb5d94c5fe1ed83508e4a35aaaa

Author: Matteo Facchinetti <matteo.facchine...@sirius-es.it>
Date:   Sat Aug 15 23:46:54 2009 +0200

rtcan: fix MPC5xxx_GPIO definition for 2.6.2[0-4] kernels

---

 ksrc/drivers/can/mscan/rtcan_mscan_regs.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ksrc/drivers/can/mscan/rtcan_mscan_regs.h 
b/ksrc/drivers/can/mscan/rtcan_mscan_regs.h
index ad996ad..e6fd7ed 100644
--- a/ksrc/drivers/can/mscan/rtcan_mscan_regs.h
+++ b/ksrc/drivers/can/mscan/rtcan_mscan_regs.h
@@ -42,8 +42,10 @@ static inline void __iomem *mpc5xxx_gpio_find_and_map(void)
            ofn = of_find_compatible_node(NULL, NULL, "fsl,mpc5200-gpio");
        return ofn ? of_iomap(ofn, 0) : NULL;
 }
-#endif
 #define MPC5xxx_GPIO    mpc5xxx_gpio_find_and_map()
+#else
+#define MPC5xxx_GPIO    mpc52xx_find_and_map("mpc5200-gpio")
+#endif
 #define mpc5xxx_gpio   mpc52xx_gpio
 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
 #include <asm/mpc5xxx.h>


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to