projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcdba07
)
serial: ifx6x60: fixed call to tty_port_init
author
Russ Gorby
<russ.gorby@intel.com>
Mon, 7 Feb 2011 20:02:27 +0000
(12:02 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 17 Feb 2011 19:16:14 +0000
(11:16 -0800)
The port ops must be set AFTER calling port init as that function
zeroes the structure
Signed-off-by: Russ Gorby <russ.gorby@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/ifx6x60.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tty/serial/ifx6x60.c
b/drivers/tty/serial/ifx6x60.c
index c42de7152eea2cdfae94d758fddf40aa2b9e05ce..972c04d8c1a3c902ea643c525937292cc8b89ac8 100644
(file)
--- a/
drivers/tty/serial/ifx6x60.c
+++ b/
drivers/tty/serial/ifx6x60.c
@@
-798,8
+798,8
@@
static int ifx_spi_create_port(struct ifx_spi_device *ifx_dev)
goto error_ret;
}
- pport->ops = &ifx_tty_port_ops;
tty_port_init(pport);
+ pport->ops = &ifx_tty_port_ops;
ifx_dev->minor = IFX_SPI_TTY_ID;
ifx_dev->tty_dev = tty_register_device(tty_drv, ifx_dev->minor,
&ifx_dev->spi_dev->dev);