|
@@ -1757,7 +1757,6 @@ static int atmel_startup(struct uart_port *port)
|
|
{
|
|
{
|
|
struct platform_device *pdev = to_platform_device(port->dev);
|
|
struct platform_device *pdev = to_platform_device(port->dev);
|
|
struct atmel_uart_port *atmel_port = to_atmel_uart_port(port);
|
|
struct atmel_uart_port *atmel_port = to_atmel_uart_port(port);
|
|
- struct tty_struct *tty = port->state->port.tty;
|
|
|
|
int retval;
|
|
int retval;
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -1772,8 +1771,8 @@ static int atmel_startup(struct uart_port *port)
|
|
* Allocate the IRQ
|
|
* Allocate the IRQ
|
|
*/
|
|
*/
|
|
retval = request_irq(port->irq, atmel_interrupt,
|
|
retval = request_irq(port->irq, atmel_interrupt,
|
|
- IRQF_SHARED | IRQF_COND_SUSPEND,
|
|
|
|
- tty ? tty->name : "atmel_serial", port);
|
|
|
|
|
|
+ IRQF_SHARED | IRQF_COND_SUSPEND,
|
|
|
|
+ dev_name(&pdev->dev), port);
|
|
if (retval) {
|
|
if (retval) {
|
|
dev_err(port->dev, "atmel_startup - Can't get irq\n");
|
|
dev_err(port->dev, "atmel_startup - Can't get irq\n");
|
|
return retval;
|
|
return retval;
|