summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/sh-sci.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-01 18:17:45 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-02 11:54:13 +0800
commit3ba35baa55fa4420f9ea7132d728ed68cfa37d28 (patch)
tree96a67f78c885694f2e0793a5a2a11d4a04ef25d4 /drivers/tty/serial/sh-sci.c
parent00a135b3952f6ccedfb688919c59bb3fa199a11f (diff)
serial: sh-sci: 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/sh-sci.c')
-rw-r--r--drivers/tty/serial/sh-sci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index 72ca870f8e57..537750261aaa 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -2469,7 +2469,7 @@ static int sci_probe_single(struct platform_device *dev,
static int sci_probe(struct platform_device *dev)
{
- struct plat_sci_port *p = dev->dev.platform_data;
+ struct plat_sci_port *p = dev_get_platdata(&dev->dev);
struct sci_port *sp = &sci_ports[dev->id];
int ret;