Skip to contentSkip to conversation

serial: sh-sci: use dev_get_platdata()

PATCH New Jingoo Han 1 participant 1 message Aug 1, 2013 TTY layer and serial drivers

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 serial: sh-sci: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly

---
 drivers/tty/serial/sh-sci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/sh-sci.c +1 -1
index 72ca870..5377502 100644
@@ -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;
 
Signature · 1 line
1.7.10.4