aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/omap-serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/omap-serial.c')
-rw-r--r--drivers/tty/serial/omap-serial.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c
index c77bf0cf2684..c7517063eb9b 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -200,7 +200,7 @@ static inline void serial_omap_clear_fifos(struct uart_omap_port *up)
200 200
201static int serial_omap_get_context_loss_count(struct uart_omap_port *up) 201static int serial_omap_get_context_loss_count(struct uart_omap_port *up)
202{ 202{
203 struct omap_uart_port_info *pdata = up->dev->platform_data; 203 struct omap_uart_port_info *pdata = dev_get_platdata(up->dev);
204 204
205 if (!pdata || !pdata->get_context_loss_count) 205 if (!pdata || !pdata->get_context_loss_count)
206 return -EINVAL; 206 return -EINVAL;
@@ -210,7 +210,7 @@ static int serial_omap_get_context_loss_count(struct uart_omap_port *up)
210 210
211static void serial_omap_enable_wakeup(struct uart_omap_port *up, bool enable) 211static void serial_omap_enable_wakeup(struct uart_omap_port *up, bool enable)
212{ 212{
213 struct omap_uart_port_info *pdata = up->dev->platform_data; 213 struct omap_uart_port_info *pdata = dev_get_platdata(up->dev);
214 214
215 if (!pdata || !pdata->enable_wakeup) 215 if (!pdata || !pdata->enable_wakeup)
216 return; 216 return;
@@ -1409,7 +1409,7 @@ static int serial_omap_probe(struct platform_device *pdev)
1409{ 1409{
1410 struct uart_omap_port *up; 1410 struct uart_omap_port *up;
1411 struct resource *mem, *irq; 1411 struct resource *mem, *irq;
1412 struct omap_uart_port_info *omap_up_info = pdev->dev.platform_data; 1412 struct omap_uart_port_info *omap_up_info = dev_get_platdata(&pdev->dev);
1413 int ret; 1413 int ret;
1414 1414
1415 if (pdev->dev.of_node) { 1415 if (pdev->dev.of_node) {