summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/altera_uart.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2012-08-20 15:56:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-05 12:33:39 -0700
commit1a16afa2cecd36bc4b6ba00fe4c83fcf5ca6e710 (patch)
tree03c048e8f06891f3de2ac9556727aa83c32922e0 /drivers/tty/serial/altera_uart.c
parentc0fc208e487a985c4d083c498fecf791e6e965b7 (diff)
downloadop-kernel-dev-1a16afa2cecd36bc4b6ba00fe4c83fcf5ca6e710.zip
op-kernel-dev-1a16afa2cecd36bc4b6ba00fe4c83fcf5ca6e710.tar.gz
tty: serial: altera_uart: Use platform_{get,set}_drvdata
Use the wrapper functions, so we can directly pass a struct platfrom_device. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/altera_uart.c')
-rw-r--r--drivers/tty/serial/altera_uart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/serial/altera_uart.c b/drivers/tty/serial/altera_uart.c
index 1f03309..15d80b9 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)
port->ops = &altera_uart_ops;
port->flags = UPF_BOOT_AUTOCONF;
- dev_set_drvdata(&pdev->dev, port);
+ platform_set_drvdata(pdev, port);
uart_add_one_port(&altera_uart_driver, port);
@@ -600,11 +600,11 @@ static int __devinit altera_uart_probe(struct platform_device *pdev)
static int __devexit altera_uart_remove(struct platform_device *pdev)
{
- struct uart_port *port = dev_get_drvdata(&pdev->dev);
+ struct uart_port *port = platform_get_drvdata(pdev);
if (port) {
uart_remove_one_port(&altera_uart_driver, port);
- dev_set_drvdata(&pdev->dev, NULL);
+ platform_set_drvdata(pdev, NULL);
port->mapbase = 0;
}
OpenPOWER on IntegriCloud