summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/amba-pl010.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 10:06:57 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-01 02:56:15 +0200
commit574de559c1797618fd8ed03576837eb3113c5d26 (patch)
treecbc8d8eeeff81fe6de1f6b33c053feed9fb4b1be /drivers/tty/serial/amba-pl010.c
parentserial: pch_uart: Fix signed-ness and casting of uartclk related fields (diff)
downloadlinux-574de559c1797618fd8ed03576837eb3113c5d26.tar.xz
linux-574de559c1797618fd8ed03576837eb3113c5d26.zip
serial: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/amba-pl010.c')
-rw-r--r--drivers/tty/serial/amba-pl010.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/amba-pl010.c b/drivers/tty/serial/amba-pl010.c
index c36840519527..8b90f0b6dfdf 100644
--- a/drivers/tty/serial/amba-pl010.c
+++ b/drivers/tty/serial/amba-pl010.c
@@ -721,7 +721,7 @@ static int pl010_probe(struct amba_device *dev, const struct amba_id *id)
uap->port.flags = UPF_BOOT_AUTOCONF;
uap->port.line = i;
uap->dev = dev;
- uap->data = dev->dev.platform_data;
+ uap->data = dev_get_platdata(&dev->dev);
amba_ports[i] = uap;