提交 8b4a483b 编写于 作者: A Alan Cox 提交者: Linus Torvalds

8250_gsc: coding style

Signed-off-by: NAlan Cox <alan@redhat.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 ce2e204f
...@@ -25,8 +25,7 @@ ...@@ -25,8 +25,7 @@
#include "8250.h" #include "8250.h"
static int __init static int __init serial_init_chip(struct parisc_device *dev)
serial_init_chip(struct parisc_device *dev)
{ {
struct uart_port port; struct uart_port port;
unsigned long address; unsigned long address;
...@@ -38,18 +37,17 @@ serial_init_chip(struct parisc_device *dev) ...@@ -38,18 +37,17 @@ serial_init_chip(struct parisc_device *dev)
* what we have here is a missing parent device, so tell * what we have here is a missing parent device, so tell
* the user what they're missing. * the user what they're missing.
*/ */
if (parisc_parent(dev)->id.hw_type != HPHW_IOA) { if (parisc_parent(dev)->id.hw_type != HPHW_IOA)
printk(KERN_INFO "Serial: device 0x%lx not configured.\n" printk(KERN_INFO
"Serial: device 0x%lx not configured.\n"
"Enable support for Wax, Lasi, Asp or Dino.\n", "Enable support for Wax, Lasi, Asp or Dino.\n",
dev->hpa.start); dev->hpa.start);
}
return -ENODEV; return -ENODEV;
} }
address = dev->hpa.start; address = dev->hpa.start;
if (dev->id.sversion != 0x8d) { if (dev->id.sversion != 0x8d)
address += 0x800; address += 0x800;
}
memset(&port, 0, sizeof(port)); memset(&port, 0, sizeof(port));
port.iotype = UPIO_MEM; port.iotype = UPIO_MEM;
...@@ -63,7 +61,8 @@ serial_init_chip(struct parisc_device *dev) ...@@ -63,7 +61,8 @@ serial_init_chip(struct parisc_device *dev)
err = serial8250_register_port(&port); err = serial8250_register_port(&port);
if (err < 0) { if (err < 0) {
printk(KERN_WARNING "serial8250_register_port returned error %d\n", err); printk(KERN_WARNING
"serial8250_register_port returned error %d\n", err);
iounmap(port.membase); iounmap(port.membase);
return err; return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册