~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/tty/serial/atmel_serial.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  linux/drivers/char/atmel_serial.c
3
 
 *
4
2
 *  Driver for Atmel AT91 / AT32 Serial ports
5
3
 *  Copyright (C) 2003 Rick Bronson
6
4
 *
1711
1709
static int __devinit atmel_serial_probe(struct platform_device *pdev)
1712
1710
{
1713
1711
        struct atmel_uart_port *port;
 
1712
        struct atmel_uart_data *pdata = pdev->dev.platform_data;
1714
1713
        void *data;
1715
1714
        int ret;
1716
1715
 
1717
1716
        BUILD_BUG_ON(ATMEL_SERIAL_RINGSIZE & (ATMEL_SERIAL_RINGSIZE - 1));
1718
1717
 
1719
 
        port = &atmel_ports[pdev->id];
 
1718
        port = &atmel_ports[pdata->num];
1720
1719
        port->backup_imr = 0;
1721
1720
 
1722
1721
        atmel_init_port(port, pdev);