Commit c05be26a authored by Pascal Bos's avatar Pascal Bos

Moved the function "console_register_device(...)" to be declared before usage.

This throws a warning in gcc-lm32-elf version 4, and a error in version 10.
updated ppsi
parent 53006465
Pipeline #351 failed with stages
in 2 seconds
......@@ -174,6 +174,19 @@ int console_ipmi_process_request(struct console_device* dev, uint8_t *req, int
return i;
}
static void console_register_device( struct console_device *dev )
{
int i;
for(i = 0; i < BOARD_MAX_CONSOLE_DEVICES; i++)
{
if ( console_devs[i] == NULL )
{
console_devs[i] = dev;
return;
}
}
}
void console_ipmi_init( )
{
console_ipmi_dev.priv = &console_ipmi_priv;
......@@ -225,18 +238,6 @@ int console_getc()
return -1;
}
static void console_register_device( struct console_device *dev )
{
int i;
for(i = 0; i < BOARD_MAX_CONSOLE_DEVICES; i++)
{
if ( console_devs[i] == NULL )
{
console_devs[i] = dev;
return;
}
}
}
void console_init()
{
......
Subproject commit 038da90b9556ead6f34a0e6a61a4b950e4a9424c
Subproject commit 09d519dac6fd500a8c2c29122c948e19f5d2f183
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment