summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/ifx6x60.c
diff options
context:
space:
mode:
authorRuss Gorby <russ.gorby@intel.com>2011-02-07 20:02:27 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-17 19:16:14 (GMT)
commitb68f23b24e0013d489aaa986da0210feea00d4c1 (patch)
treea158db0ea0f7fde614993865422056e89d6234cf /drivers/tty/serial/ifx6x60.c
parentfcdba07ee390d9d9c15de8b2a17baef689284fcc (diff)
downloadlinux-b68f23b24e0013d489aaa986da0210feea00d4c1.tar.xz
serial: ifx6x60: fixed call to tty_port_init
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>
Diffstat (limited to 'drivers/tty/serial/ifx6x60.c')
-rw-r--r--drivers/tty/serial/ifx6x60.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/ifx6x60.c b/drivers/tty/serial/ifx6x60.c
index c42de71..972c04d 100644
--- 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);