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

Author: Matteo Facchinetti <matteo.facchine...@sirius-es.it>
Date:   Sat Aug 15 23:47:08 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