summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sh-sci.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 17:06:57 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-31 17:56:15 -0700
commit574de559c1797618fd8ed03576837eb3113c5d26 (patch)
treecbc8d8eeeff81fe6de1f6b33c053feed9fb4b1be /drivers/tty/serial/sh-sci.c
parente26439ce03f0808f5d797ca33f180fdb8258335a (diff)
downloadop-kernel-dev-574de559c1797618fd8ed03576837eb3113c5d26.zip
op-kernel-dev-574de559c1797618fd8ed03576837eb3113c5d26.tar.gz
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/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 7477e0e..72ca870 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -2380,7 +2380,7 @@ static char early_serial_buf[32];
static int sci_probe_earlyprintk(struct platform_device *pdev)
{
- struct plat_sci_port *cfg = pdev->dev.platform_data;
+ struct plat_sci_port *cfg = dev_get_platdata(&pdev->dev);
if (early_serial_console.data)
return -EEXIST;
OpenPOWER on IntegriCloud