Skip to contentSkip to conversation

socket can compile broken

Xenomai-core Applied Matteo Facchinetti 2 participants 2 messages Jul 26, 2009 – Aug 15, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I've upgrade xenomai to the last 2.4.8 (git) version.
I'm using kernel 2.6.24powerpc and for compile socket-can module, need to change MPC5xxx_GPIO define. In this kernel version I havn't mpc5xxx_gpio_find_and_map() function but only mpc52xx_find_and_map("mpc5200-gpio").

Regards.

Matteo Facchinetti
Sirius Electronic Systems

ksrc/drivers/can/mscan/rtcan_mscan_regs.h +3 -1
index ad996ad..e6fd7ed 100644
@@ -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>
#1 lore raw
Quoted 8 lines · Matteo Facchinetti

Hi,

I've upgrade xenomai to the last 2.4.8 (git) version.
I'm using kernel 2.6.24powerpc and for compile socket-can module, need to change MPC5xxx_GPIO define.
In this kernel version I havn't mpc5xxx_gpio_find_and_map() function but only mpc52xx_find_and_map("mpc5200-gpio").

Merged, thanks.

Signature · 1 line
Philippe.