提交 0d0a3cc1 编写于 作者: V Voss, Nikolaus 提交者: Greg Kroah-Hartman

atmel_serial: fix atmel_default_console_device

reflect new static uart platform ids introduced by patch
http://article.gmane.org/gmane.linux.kernel/1126105Signed-off-by: NNikolaus Voss <n.voss@weinmann.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 ab8ba3a2
......@@ -1609,9 +1609,11 @@ static struct console atmel_console = {
static int __init atmel_console_init(void)
{
if (atmel_default_console_device) {
add_preferred_console(ATMEL_DEVICENAME,
atmel_default_console_device->id, NULL);
atmel_init_port(&atmel_ports[atmel_default_console_device->id],
struct atmel_uart_data *pdata =
atmel_default_console_device->dev.platform_data;
add_preferred_console(ATMEL_DEVICENAME, pdata->num, NULL);
atmel_init_port(&atmel_ports[pdata->num],
atmel_default_console_device);
register_console(&atmel_console);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册