提交 3a046c19 编写于 作者: K Keerthimai Janarthanan 提交者: Greg Kroah-Hartman

staging: speakup: Prefer pr_err instead of printk(KERN_ERR)

Prefer pr_err instead of printk(KERN_ERR)
Signed-off-by: NKeerthimai Janarthanan <keerthimaipb@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 14108510
...@@ -40,7 +40,7 @@ const struct old_serial_port *spk_serial_init(int index) ...@@ -40,7 +40,7 @@ const struct old_serial_port *spk_serial_init(int index)
cval |= UART_LCR_EPAR; cval |= UART_LCR_EPAR;
if (synth_request_region(ser->port, 8)) { if (synth_request_region(ser->port, 8)) {
/* try to take it back. */ /* try to take it back. */
printk(KERN_INFO "Ports not available, trying to steal them\n"); pr_info("Ports not available, trying to steal them\n");
__release_region(&ioport_resource, ser->port, 8); __release_region(&ioport_resource, ser->port, 8);
err = synth_request_region(ser->port, 8); err = synth_request_region(ser->port, 8);
if (err) { if (err) {
...@@ -106,7 +106,7 @@ static void start_serial_interrupt(int irq) ...@@ -106,7 +106,7 @@ static void start_serial_interrupt(int irq)
"serial", (void *) synth_readbuf_handler); "serial", (void *) synth_readbuf_handler);
if (rv) if (rv)
printk(KERN_ERR "Unable to request Speakup serial I R Q\n"); pr_err("Unable to request Speakup serial I R Q\n");
/* Set MCR */ /* Set MCR */
outb(UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2, outb(UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2,
speakup_info.port_tts + UART_MCR); speakup_info.port_tts + UART_MCR);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册