diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 12:06:57 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-01 04:56:15 +0400 |
commit | 574de559c1797618fd8ed03576837eb3113c5d26 (patch) | |
tree | cbc8d8eeeff81fe6de1f6b33c053feed9fb4b1be /drivers/tty/serial/serial_txx9.c | |
parent | e26439ce03f0808f5d797ca33f180fdb8258335a (diff) | |
download | linux-574de559c1797618fd8ed03576837eb3113c5d26.tar.xz |
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/serial_txx9.c')
-rw-r--r-- | drivers/tty/serial/serial_txx9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/serial_txx9.c b/drivers/tty/serial/serial_txx9.c index fe48a0c2b4ca..440a962412da 100644 --- a/drivers/tty/serial/serial_txx9.c +++ b/drivers/tty/serial/serial_txx9.c @@ -1097,7 +1097,7 @@ static void serial_txx9_unregister_port(int line) */ static int serial_txx9_probe(struct platform_device *dev) { - struct uart_port *p = dev->dev.platform_data; + struct uart_port *p = dev_get_platdata(&dev->dev); struct uart_port port; int ret, i; |