diff options
Diffstat (limited to 'drivers/tty/serial/8250/serial_cs.c')
-rw-r--r-- | drivers/tty/serial/8250/serial_cs.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/tty/serial/8250/serial_cs.c b/drivers/tty/serial/8250/serial_cs.c index 29b695d041e..b7d48b34639 100644 --- a/drivers/tty/serial/8250/serial_cs.c +++ b/drivers/tty/serial/8250/serial_cs.c | |||
@@ -73,7 +73,7 @@ struct serial_quirk { | |||
73 | unsigned int prodid; | 73 | unsigned int prodid; |
74 | int multi; /* 1 = multifunction, > 1 = # ports */ | 74 | int multi; /* 1 = multifunction, > 1 = # ports */ |
75 | void (*config)(struct pcmcia_device *); | 75 | void (*config)(struct pcmcia_device *); |
76 | void (*setup)(struct pcmcia_device *, struct uart_port *); | 76 | void (*setup)(struct pcmcia_device *, struct uart_8250_port *); |
77 | void (*wakeup)(struct pcmcia_device *); | 77 | void (*wakeup)(struct pcmcia_device *); |
78 | int (*post)(struct pcmcia_device *); | 78 | int (*post)(struct pcmcia_device *); |
79 | }; | 79 | }; |
@@ -105,9 +105,9 @@ struct serial_cfg_mem { | |||
105 | * Elan VPU16551 UART with 14.7456MHz oscillator | 105 | * Elan VPU16551 UART with 14.7456MHz oscillator |
106 | * manfid 0x015D, 0x4C45 | 106 | * manfid 0x015D, 0x4C45 |
107 | */ | 107 | */ |
108 | static void quirk_setup_brainboxes_0104(struct pcmcia_device *link, struct uart_port *port) | 108 | static void quirk_setup_brainboxes_0104(struct pcmcia_device *link, struct uart_8250_port *uart) |
109 | { | 109 | { |
110 | port->uartclk = 14745600; | 110 | uart->port.uartclk = 14745600; |
111 | } | 111 | } |
112 | 112 | ||
113 | static int quirk_post_ibm(struct pcmcia_device *link) | 113 | static int quirk_post_ibm(struct pcmcia_device *link) |
@@ -343,25 +343,25 @@ static void serial_detach(struct pcmcia_device *link) | |||
343 | static int setup_serial(struct pcmcia_device *handle, struct serial_info * info, | 343 | static int setup_serial(struct pcmcia_device *handle, struct serial_info * info, |
344 | unsigned int iobase, int irq) | 344 | unsigned int iobase, int irq) |
345 | { | 345 | { |
346 | struct uart_port port; | 346 | struct uart_8250_port uart; |
347 | int line; | 347 | int line; |
348 | 348 | ||
349 | memset(&port, 0, sizeof (struct uart_port)); | 349 | memset(&uart, 0, sizeof(uart)); |
350 | port.iobase = iobase; | 350 | uart.port.iobase = iobase; |
351 | port.irq = irq; | 351 | uart.port.irq = irq; |
352 | port.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ; | 352 | uart.port.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ; |
353 | port.uartclk = 1843200; | 353 | uart.port.uartclk = 1843200; |
354 | port.dev = &handle->dev; | 354 | uart.port.dev = &handle->dev; |
355 | if (buggy_uart) | 355 | if (buggy_uart) |
356 | port.flags |= UPF_BUGGY_UART; | 356 | uart.port.flags |= UPF_BUGGY_UART; |
357 | 357 | ||
358 | if (info->quirk && info->quirk->setup) | 358 | if (info->quirk && info->quirk->setup) |
359 | info->quirk->setup(handle, &port); | 359 | info->quirk->setup(handle, &uart); |
360 | 360 | ||
361 | line = serial8250_register_port(&port); | 361 | line = serial8250_register_8250_port(&uart); |
362 | if (line < 0) { | 362 | if (line < 0) { |
363 | printk(KERN_NOTICE "serial_cs: serial8250_register_port() at " | 363 | pr_err("serial_cs: serial8250_register_8250_port() at 0x%04lx, irq %d failed\n", |
364 | "0x%04lx, irq %d failed\n", (u_long)iobase, irq); | 364 | (unsigned long)iobase, irq); |
365 | return -EINVAL; | 365 | return -EINVAL; |
366 | } | 366 | } |
367 | 367 | ||