Skip to content

Commit

Permalink
tty: remove use of __devinit
Browse files Browse the repository at this point in the history
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Lucas Tavares <lucaskt@linux.vnet.ibm.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Peter Korsgaard <jacmet@sunsite.dk>
Cc: Tony Prisk <linux@prisktech.co.nz>
Acked-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Nov 21, 2012
1 parent 2d47b71 commit 9671f09
Show file tree
Hide file tree
Showing 60 changed files with 113 additions and 113 deletions.
16 changes: 8 additions & 8 deletions drivers/tty/cyclades.c
Original file line number Diff line number Diff line change
Expand Up @@ -3099,7 +3099,7 @@ static const struct tty_port_operations cyz_port_ops = {
* ---------------------------------------------------------------------
*/

static int __devinit cy_init_card(struct cyclades_card *cinfo)
static int cy_init_card(struct cyclades_card *cinfo)
{
struct cyclades_port *info;
unsigned int channel, port;
Expand Down Expand Up @@ -3196,7 +3196,7 @@ static int __devinit cy_init_card(struct cyclades_card *cinfo)

/* initialize chips on Cyclom-Y card -- return number of valid
chips (which is number of ports/4) */
static unsigned short __devinit cyy_init_card(void __iomem *true_base_addr,
static unsigned short cyy_init_card(void __iomem *true_base_addr,
int index)
{
unsigned int chip_number;
Expand Down Expand Up @@ -3405,7 +3405,7 @@ static int __init cy_detect_isa(void)
} /* cy_detect_isa */

#ifdef CONFIG_PCI
static inline int __devinit cyc_isfwstr(const char *str, unsigned int size)
static inline int cyc_isfwstr(const char *str, unsigned int size)
{
unsigned int a;

Expand All @@ -3420,7 +3420,7 @@ static inline int __devinit cyc_isfwstr(const char *str, unsigned int size)
return 0;
}

static inline void __devinit cyz_fpga_copy(void __iomem *fpga, const u8 *data,
static inline void cyz_fpga_copy(void __iomem *fpga, const u8 *data,
unsigned int size)
{
for (; size > 0; size--) {
Expand All @@ -3429,7 +3429,7 @@ static inline void __devinit cyz_fpga_copy(void __iomem *fpga, const u8 *data,
}
}

static void __devinit plx_init(struct pci_dev *pdev, int irq,
static void plx_init(struct pci_dev *pdev, int irq,
struct RUNTIME_9060 __iomem *addr)
{
/* Reset PLX */
Expand All @@ -3449,7 +3449,7 @@ static void __devinit plx_init(struct pci_dev *pdev, int irq,
pci_write_config_byte(pdev, PCI_INTERRUPT_LINE, irq);
}

static int __devinit __cyz_load_fw(const struct firmware *fw,
static int __cyz_load_fw(const struct firmware *fw,
const char *name, const u32 mailbox, void __iomem *base,
void __iomem *fpga)
{
Expand Down Expand Up @@ -3526,7 +3526,7 @@ static int __devinit __cyz_load_fw(const struct firmware *fw,
return 0;
}

static int __devinit cyz_load_fw(struct pci_dev *pdev, void __iomem *base_addr,
static int cyz_load_fw(struct pci_dev *pdev, void __iomem *base_addr,
struct RUNTIME_9060 __iomem *ctl_addr, int irq)
{
const struct firmware *fw;
Expand Down Expand Up @@ -3692,7 +3692,7 @@ static int __devinit cyz_load_fw(struct pci_dev *pdev, void __iomem *base_addr,
return retval;
}

static int __devinit cy_pci_probe(struct pci_dev *pdev,
static int cy_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
{
struct cyclades_card *card;
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/ehv_bytechan.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ static const struct tty_port_operations ehv_bc_tty_port_ops = {
.shutdown = ehv_bc_tty_port_shutdown,
};

static int __devinit ehv_bc_tty_probe(struct platform_device *pdev)
static int ehv_bc_tty_probe(struct platform_device *pdev)
{
struct device_node *np = pdev->dev.of_node;
struct ehv_bc_data *bc;
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/hvc/hvc_opal.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static const struct hv_ops hvc_opal_hvsi_ops = {
.tiocmset = hvc_opal_hvsi_tiocmset,
};

static int __devinit hvc_opal_probe(struct platform_device *dev)
static int hvc_opal_probe(struct platform_device *dev)
{
const struct hv_ops *ops;
struct hvc_struct *hp;
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/hvc/hvc_vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ static int udbg_hvc_getc(void)
}
}

static int __devinit hvc_vio_probe(struct vio_dev *vdev,
static int hvc_vio_probe(struct vio_dev *vdev,
const struct vio_device_id *id)
{
const struct hv_ops *ops;
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/hvc/hvc_xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ static int xencons_connect_backend(struct xenbus_device *dev,
return ret;
}

static int __devinit xencons_probe(struct xenbus_device *dev,
static int xencons_probe(struct xenbus_device *dev,
const struct xenbus_device_id *id)
{
int ret, devid;
Expand Down
8 changes: 4 additions & 4 deletions drivers/tty/hvc/hvcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,12 @@ static int hvcs_open(struct tty_struct *tty, struct file *filp);
static void hvcs_close(struct tty_struct *tty, struct file *filp);
static void hvcs_hangup(struct tty_struct * tty);

static int __devinit hvcs_probe(struct vio_dev *dev,
static int hvcs_probe(struct vio_dev *dev,
const struct vio_device_id *id);
static int __devexit hvcs_remove(struct vio_dev *dev);
static int __init hvcs_module_init(void);
static void __exit hvcs_module_exit(void);
static int __devinit hvcs_initialize(void);
static int hvcs_initialize(void);

#define HVCS_SCHED_READ 0x00000001
#define HVCS_QUICK_READ 0x00000002
Expand Down Expand Up @@ -756,7 +756,7 @@ static int hvcs_get_index(void)
return -1;
}

static int __devinit hvcs_probe(
static int hvcs_probe(
struct vio_dev *dev,
const struct vio_device_id *id)
{
Expand Down Expand Up @@ -1478,7 +1478,7 @@ static void hvcs_free_index_list(void)
hvcs_index_count = 0;
}

static int __devinit hvcs_initialize(void)
static int hvcs_initialize(void)
{
int rc, num_ttys_to_alloc;

Expand Down
6 changes: 3 additions & 3 deletions drivers/tty/isicom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ static const struct tty_port_operations isicom_port_ops = {
.shutdown = isicom_shutdown,
};

static int __devinit reset_card(struct pci_dev *pdev,
static int reset_card(struct pci_dev *pdev,
const unsigned int card, unsigned int *signature)
{
struct isi_board *board = pci_get_drvdata(pdev);
Expand Down Expand Up @@ -1368,7 +1368,7 @@ static int __devinit reset_card(struct pci_dev *pdev,
return retval;
}

static int __devinit load_firmware(struct pci_dev *pdev,
static int load_firmware(struct pci_dev *pdev,
const unsigned int index, const unsigned int signature)
{
struct isi_board *board = pci_get_drvdata(pdev);
Expand Down Expand Up @@ -1548,7 +1548,7 @@ static int __devinit load_firmware(struct pci_dev *pdev,
*/
static unsigned int card_count;

static int __devinit isicom_probe(struct pci_dev *pdev,
static int isicom_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
{
unsigned int uninitialized_var(signature), index;
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/moxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ static void moxa_board_deinit(struct moxa_board_conf *brd)
}

#ifdef CONFIG_PCI
static int __devinit moxa_pci_probe(struct pci_dev *pdev,
static int moxa_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
{
struct moxa_board_conf *board;
Expand Down
6 changes: 3 additions & 3 deletions drivers/tty/mxser.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ static void mxser_disable_must_rx_software_flow_control(unsigned long baseio)
}

#ifdef CONFIG_PCI
static int __devinit CheckIsMoxaMust(unsigned long io)
static int CheckIsMoxaMust(unsigned long io)
{
u8 oldmcr, hwid;
int i;
Expand Down Expand Up @@ -2369,7 +2369,7 @@ static void mxser_release_ISA_res(struct mxser_board *brd)
mxser_release_vector(brd);
}

static int __devinit mxser_initbrd(struct mxser_board *brd,
static int mxser_initbrd(struct mxser_board *brd,
struct pci_dev *pdev)
{
struct mxser_port *info;
Expand Down Expand Up @@ -2547,7 +2547,7 @@ static int __init mxser_get_ISA_conf(int cap, struct mxser_board *brd)
return -EIO;
}

static int __devinit mxser_probe(struct pci_dev *pdev,
static int mxser_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
{
#ifdef CONFIG_PCI
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/nozomi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ static void remove_sysfs_files(struct nozomi *dc)
}

/* Allocate memory for one device */
static int __devinit nozomi_card_init(struct pci_dev *pdev,
static int nozomi_card_init(struct pci_dev *pdev,
const struct pci_device_id *ent)
{
resource_size_t start;
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/serial/8250/8250.c
Original file line number Diff line number Diff line change
Expand Up @@ -2989,7 +2989,7 @@ void serial8250_resume_port(int line)
* list is terminated with a zero flags entry, which means we expect
* all entries to have at least UPF_BOOT_AUTOCONF set.
*/
static int __devinit serial8250_probe(struct platform_device *dev)
static int serial8250_probe(struct platform_device *dev)
{
struct plat_serial8250_port *p = dev->dev.platform_data;
struct uart_8250_port uart;
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/serial/8250/8250_acorn.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct serial_card_info {
void __iomem *vaddr;
};

static int __devinit
static int
serial_card_probe(struct expansion_card *ec, const struct ecard_id *id)
{
struct serial_card_info *info;
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/serial/8250/8250_dw.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static int dw8250_handle_irq(struct uart_port *p)
return 0;
}

static int __devinit dw8250_probe(struct platform_device *pdev)
static int dw8250_probe(struct platform_device *pdev)
{
struct uart_8250_port uart = {};
struct resource *regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/serial/8250/8250_em.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static void serial8250_em_serial_dl_write(struct uart_8250_port *up, int value)
serial_out(up, UART_DLM_EM, value >> 8 & 0xff);
}

static int __devinit serial8250_em_probe(struct platform_device *pdev)
static int serial8250_em_probe(struct platform_device *pdev)
{
struct resource *regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
struct resource *irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
Expand Down
4 changes: 2 additions & 2 deletions drivers/tty/serial/8250/8250_hp300.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static struct hp300_port *hp300_ports;

#ifdef CONFIG_HPDCA

static int __devinit hpdca_init_one(struct dio_dev *d,
static int hpdca_init_one(struct dio_dev *d,
const struct dio_device_id *ent);
static void __devexit hpdca_remove_one(struct dio_dev *d);

Expand Down Expand Up @@ -159,7 +159,7 @@ int __init hp300_setup_serial_console(void)
#endif /* CONFIG_SERIAL_8250_CONSOLE */

#ifdef CONFIG_HPDCA
static int __devinit hpdca_init_one(struct dio_dev *d,
static int hpdca_init_one(struct dio_dev *d,
const struct dio_device_id *ent)
{
struct uart_8250_port uart;
Expand Down
4 changes: 2 additions & 2 deletions drivers/tty/serial/8250/8250_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2691,7 +2691,7 @@ static const struct pci_device_id blacklist[] = {
* guess what the configuration might be, based on the pitiful PCI
* serial specs. Returns 0 on success, 1 on failure.
*/
static int __devinit
static int
serial_pci_guess_board(struct pci_dev *dev, struct pciserial_board *board)
{
const struct pci_device_id *bldev;
Expand Down Expand Up @@ -2917,7 +2917,7 @@ EXPORT_SYMBOL_GPL(pciserial_resume_ports);
* Probe one serial board. Unfortunately, there is no rhyme nor reason
* to the arrangement of serial ports on a PCI card.
*/
static int __devinit
static int
pciserial_init_one(struct pci_dev *dev, const struct pci_device_id *ent)
{
struct pci_serial_quirk *quirk;
Expand Down
8 changes: 4 additions & 4 deletions drivers/tty/serial/8250/8250_pnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ static char *modem_names[] __devinitdata = {
"33600", "28800", "14400", "V.90", "V.34", "V.32", NULL
};

static int __devinit check_name(char *name)
static int check_name(char *name)
{
char **tmp;

Expand All @@ -388,7 +388,7 @@ static int __devinit check_name(char *name)
return 0;
}

static int __devinit check_resources(struct pnp_dev *dev)
static int check_resources(struct pnp_dev *dev)
{
resource_size_t base[] = {0x2f8, 0x3f8, 0x2e8, 0x3e8};
int i;
Expand All @@ -412,7 +412,7 @@ static int __devinit check_resources(struct pnp_dev *dev)
* PnP modems, alternatively we must hardcode all modems in pnp_devices[]
* table.
*/
static int __devinit serial_pnp_guess_board(struct pnp_dev *dev)
static int serial_pnp_guess_board(struct pnp_dev *dev)
{
if (!(check_name(pnp_dev_name(dev)) ||
(dev->card && check_name(dev->card->name))))
Expand All @@ -424,7 +424,7 @@ static int __devinit serial_pnp_guess_board(struct pnp_dev *dev)
return -ENODEV;
}

static int __devinit
static int
serial_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id)
{
struct uart_8250_port uart;
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/serial/altera_jtaguart.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static struct uart_driver altera_jtaguart_driver = {
.cons = ALTERA_JTAGUART_CONSOLE,
};

static int __devinit altera_jtaguart_probe(struct platform_device *pdev)
static int altera_jtaguart_probe(struct platform_device *pdev)
{
struct altera_jtaguart_platform_uart *platp = pdev->dev.platform_data;
struct uart_port *port;
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/serial/altera_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ static int altera_uart_get_of_uartclk(struct platform_device *pdev,
}
#endif /* CONFIG_OF */

static int __devinit altera_uart_probe(struct platform_device *pdev)
static int altera_uart_probe(struct platform_device *pdev)
{
struct altera_uart_platform_uart *platp = pdev->dev.platform_data;
struct uart_port *port;
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/serial/apbuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ static struct uart_driver grlib_apbuart_driver = {
/* OF Platform Driver */
/* ======================================================================== */

static int __devinit apbuart_probe(struct platform_device *op)
static int apbuart_probe(struct platform_device *op)
{
int i;
struct uart_port *port = NULL;
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/serial/ar933x_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ static struct uart_driver ar933x_uart_driver = {
.cons = AR933X_SERIAL_CONSOLE,
};

static int __devinit ar933x_uart_probe(struct platform_device *pdev)
static int ar933x_uart_probe(struct platform_device *pdev)
{
struct ar933x_uart_platform_data *pdata;
struct ar933x_uart_port *up;
Expand Down
10 changes: 5 additions & 5 deletions drivers/tty/serial/arc_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ static struct uart_ops arc_serial_pops = {
#endif
};

static int __devinit
static int
arc_uart_init_one(struct platform_device *pdev, struct arc_uart_port *uart)
{
struct resource *res, *res2;
Expand Down Expand Up @@ -577,7 +577,7 @@ arc_uart_init_one(struct platform_device *pdev, struct arc_uart_port *uart)

#ifdef CONFIG_SERIAL_ARC_CONSOLE

static int __devinit arc_serial_console_setup(struct console *co, char *options)
static int arc_serial_console_setup(struct console *co, char *options)
{
struct uart_port *port;
int baud = 115200;
Expand Down Expand Up @@ -655,7 +655,7 @@ static struct __initdata console arc_early_serial_console = {
.index = -1
};

static int __devinit arc_serial_probe_earlyprintk(struct platform_device *pdev)
static int arc_serial_probe_earlyprintk(struct platform_device *pdev)
{
arc_early_serial_console.index = pdev->id;

Expand All @@ -667,13 +667,13 @@ static int __devinit arc_serial_probe_earlyprintk(struct platform_device *pdev)
return 0;
}
#else
static int __devinit arc_serial_probe_earlyprintk(struct platform_device *pdev)
static int arc_serial_probe_earlyprintk(struct platform_device *pdev)
{
return -ENODEV;
}
#endif /* CONFIG_SERIAL_ARC_CONSOLE */

static int __devinit arc_serial_probe(struct platform_device *pdev)
static int arc_serial_probe(struct platform_device *pdev)
{
struct arc_uart_port *uart;
int rc;
Expand Down
Loading

0 comments on commit 9671f09

Please sign in to comment.