OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00a135b
)
serial: sh-sci: use dev_get_platdata()
author
Jingoo Han
<jg1.han@samsung.com>
Thu, 1 Aug 2013 09:17:45 +0000
(18:17 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 2 Aug 2013 03:54:13 +0000
(11:54 +0800)
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>
drivers/tty/serial/sh-sci.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/sh-sci.c
b/drivers/tty/serial/sh-sci.c
index
72ca870
..
5377502
100644
(file)
--- 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;