Commit ae19bc78 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] parport_serial fix

parport_serial is calling a couple of 8250 driver functions with no prototypes
in scope.

Turns out it was calling them with too many args, too.
parent 8d509777
......@@ -26,6 +26,7 @@
#include <linux/serial.h>
#include <linux/serialP.h>
#include <linux/list.h>
#include <linux/8250_pci.h>
#include <asm/serial.h>
......@@ -150,12 +151,12 @@ struct pci_board_no_ids {
static int __devinit siig10x_init_fn(struct pci_dev *dev, struct pci_board_no_ids *board, int enable)
{
return pci_siig10x_fn(dev, NULL, enable);
return pci_siig10x_fn(dev, enable);
}
static int __devinit siig20x_init_fn(struct pci_dev *dev, struct pci_board_no_ids *board, int enable)
{
return pci_siig20x_fn(dev, NULL, enable);
return pci_siig20x_fn(dev, enable);
}
static struct pci_board_no_ids pci_boards[] __devinitdata = {
......
......@@ -23,6 +23,7 @@
#include <linux/tty.h>
#include <linux/serial.h>
#include <linux/serial_core.h>
#include <linux/8250_pci.h>
#include <asm/bitops.h>
#include <asm/byteorder.h>
......
int pci_siig10x_fn(struct pci_dev *dev, int enable);
int pci_siig20x_fn(struct pci_dev *dev, int enable);
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