Hi guys/banda,
I've been working with the "tty_driver" and "cosole" constructions (structs)
as framework, and when the driver that uses them is compiled to be part of
the kernel there is no problem; but compiled as module there is linking
error, The function in troubles is defined in:
static struct console serial_console = {
.name = UART_SERIAL_NAME,
.write = serial_console_write,
.device = uart_console_device, //Here is the problem
.setup = serial_console_setup,
.flags = CON_PRINTBUFFER,
.index = -1,
.data = &serial_reg,
};
after compiling as modules:
make CROSS_COMPILE=arm-none-linux-gnueabi- modules
The compiler message is:
ERROR: "uart_console_device" [drivers/serial/tiny.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Gentleman, please, if there are any one that knows how to fix this problem
let me know.
in advance thanks so much for your help.
Regards,
Reno.
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel
-~----------~----~----~----~------~----~------~--~---