[Xenomai] Compileerror rt_imx_uart.c on kernel 3.10.53 ARM

Wolfgang Netbal wolfgang.netbal at sigmatek.at
Mon Dec 14 10:04:17 CET 2015


Dear All,

when I activated the serial realtime driver 
(CONFIG_XENO_DRIVERS_IMX_UART) in my kernel 3.10.53
I get the following compile errors.

drivers/xenomai/serial/rt_imx_uart.c: In function 'rt_imx_uart_probe':

drivers/xenomai/serial/rt_imx_uart.c:2032:20: error: 'struct imxuart_platform_data' has no member named 'init'

   if (pdata && pdata->init) {

                     ^

drivers/xenomai/serial/rt_imx_uart.c:2033:14: error: 'struct imxuart_platform_data' has no member named 'init'

    err = pdata->init(pdev);

               ^

drivers/xenomai/serial/rt_imx_uart.c:2095:20: error: 'struct imxuart_platform_data' has no member named 'exit'

   if (pdata && pdata->exit)

                     ^

drivers/xenomai/serial/rt_imx_uart.c:2096:8: error: 'struct imxuart_platform_data' has no member named 'exit'

    pdata->exit(pdev);

         ^

drivers/xenomai/serial/rt_imx_uart.c: In function 'rt_imx_uart_remove':

drivers/xenomai/serial/rt_imx_uart.c:2126:20: error: 'struct imxuart_platform_data' has no member named 'exit'

   if (pdata && pdata->exit)

                     ^

drivers/xenomai/serial/rt_imx_uart.c:2127:8: error: 'struct imxuart_platform_data' has no member named 'exit'

    pdata->exit(pdev);



I found out that in kernel 3.10.53 the function pointer to exit and init 
function in struct imxuart_platform_data is missing.

I tried to find a newer version of rt_imx_uart.c in xenomai 3.0 but the 
file is the same.

Do you have any idea how to fix this ?

Kind regards
Wolfgang



More information about the Xenomai mailing list