diff options
Diffstat (limited to 'drivers/tty/serial/altera_uart.c')
-rw-r--r-- | drivers/tty/serial/altera_uart.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/serial/altera_uart.c b/drivers/tty/serial/altera_uart.c index 1f0330915d5a..15d80b9fb303 100644 --- a/drivers/tty/serial/altera_uart.c +++ b/drivers/tty/serial/altera_uart.c | |||
@@ -591,7 +591,7 @@ static int __devinit altera_uart_probe(struct platform_device *pdev) | |||
591 | port->ops = &altera_uart_ops; | 591 | port->ops = &altera_uart_ops; |
592 | port->flags = UPF_BOOT_AUTOCONF; | 592 | port->flags = UPF_BOOT_AUTOCONF; |
593 | 593 | ||
594 | dev_set_drvdata(&pdev->dev, port); | 594 | platform_set_drvdata(pdev, port); |
595 | 595 | ||
596 | uart_add_one_port(&altera_uart_driver, port); | 596 | uart_add_one_port(&altera_uart_driver, port); |
597 | 597 | ||
@@ -600,11 +600,11 @@ static int __devinit altera_uart_probe(struct platform_device *pdev) | |||
600 | 600 | ||
601 | static int __devexit altera_uart_remove(struct platform_device *pdev) | 601 | static int __devexit altera_uart_remove(struct platform_device *pdev) |
602 | { | 602 | { |
603 | struct uart_port *port = dev_get_drvdata(&pdev->dev); | 603 | struct uart_port *port = platform_get_drvdata(pdev); |
604 | 604 | ||
605 | if (port) { | 605 | if (port) { |
606 | uart_remove_one_port(&altera_uart_driver, port); | 606 | uart_remove_one_port(&altera_uart_driver, port); |
607 | dev_set_drvdata(&pdev->dev, NULL); | 607 | platform_set_drvdata(pdev, NULL); |
608 | port->mapbase = 0; | 608 | port->mapbase = 0; |
609 | } | 609 | } |
610 | 610 | ||