| From e4dc1384aea42fba61c6417f302a9d48dba956dd Mon Sep 17 00:00:00 2001 |
| From: Jingoo Han <jg1.han@samsung.com> |
| Date: Thu, 1 Aug 2013 18:17:45 +0900 |
| Subject: serial: sh-sci: 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> |
| (cherry picked from commit 3ba35baa55fa4420f9ea7132d728ed68cfa37d28) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/tty/serial/sh-sci.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c |
| index 7477e0ea..9d776066 100644 |
| --- a/drivers/tty/serial/sh-sci.c |
| +++ b/drivers/tty/serial/sh-sci.c |
| @@ -2469,7 +2469,7 @@ static int sci_probe_single(struct platform_device *dev, |
| |
| static int sci_probe(struct platform_device *dev) |
| { |
| - struct plat_sci_port *p = dev->dev.platform_data; |
| + struct plat_sci_port *p = dev_get_platdata(&dev->dev); |
| struct sci_port *sp = &sci_ports[dev->id]; |
| int ret; |
| |
| -- |
| 1.8.4.3.gca3854a |
| |