diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 17:06:57 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-31 17:56:15 -0700 |
commit | 574de559c1797618fd8ed03576837eb3113c5d26 (patch) | |
tree | cbc8d8eeeff81fe6de1f6b33c053feed9fb4b1be /drivers/tty/serial/vr41xx_siu.c | |
parent | e26439ce03f0808f5d797ca33f180fdb8258335a (diff) | |
download | kernel_goldelico_gta04-574de559c1797618fd8ed03576837eb3113c5d26.zip kernel_goldelico_gta04-574de559c1797618fd8ed03576837eb3113c5d26.tar.gz kernel_goldelico_gta04-574de559c1797618fd8ed03576837eb3113c5d26.tar.bz2 |
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/vr41xx_siu.c')
-rw-r--r-- | drivers/tty/serial/vr41xx_siu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/vr41xx_siu.c b/drivers/tty/serial/vr41xx_siu.c index f655997..a63c14b 100644 --- a/drivers/tty/serial/vr41xx_siu.c +++ b/drivers/tty/serial/vr41xx_siu.c @@ -705,7 +705,7 @@ static int siu_init_ports(struct platform_device *pdev) { struct uart_port *port; struct resource *res; - int *type = pdev->dev.platform_data; + int *type = dev_get_platdata(&pdev->dev); int i; if (!type) |