diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 04:06:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-31 20:56:15 -0400 |
commit | 574de559c1797618fd8ed03576837eb3113c5d26 (patch) | |
tree | cbc8d8eeeff81fe6de1f6b33c053feed9fb4b1be /drivers/tty/serial/ar933x_uart.c | |
parent | e26439ce03f0808f5d797ca33f180fdb8258335a (diff) |
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/ar933x_uart.c')
-rw-r--r-- | drivers/tty/serial/ar933x_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/ar933x_uart.c b/drivers/tty/serial/ar933x_uart.c index 9824dfb1e4fe..7aa9062153e8 100644 --- a/drivers/tty/serial/ar933x_uart.c +++ b/drivers/tty/serial/ar933x_uart.c | |||
@@ -629,7 +629,7 @@ static int ar933x_uart_probe(struct platform_device *pdev) | |||
629 | int id; | 629 | int id; |
630 | int ret; | 630 | int ret; |
631 | 631 | ||
632 | pdata = pdev->dev.platform_data; | 632 | pdata = dev_get_platdata(&pdev->dev); |
633 | if (!pdata) | 633 | if (!pdata) |
634 | return -EINVAL; | 634 | return -EINVAL; |
635 | 635 | ||