Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jingoo Han and committed by
Greg Kroah-Hartman
3ba35baa 00a135b3

+1 -1
+1 -1
drivers/tty/serial/sh-sci.c
··· 2469 2469 2470 2470 static int sci_probe(struct platform_device *dev) 2471 2471 { 2472 - struct plat_sci_port *p = dev->dev.platform_data; 2472 + struct plat_sci_port *p = dev_get_platdata(&dev->dev); 2473 2473 struct sci_port *sp = &sci_ports[dev->id]; 2474 2474 int ret; 2475 2475