From: Russ Gorby Date: Mon, 7 Feb 2011 20:02:27 +0000 (-0800) Subject: serial: ifx6x60: fixed call to tty_port_init X-Git-Tag: MMI-PSA29.97-13-9~20522^2~57 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b68f23b24e0013d489aaa986da0210feea00d4c1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/ifx6x60.c b/drivers/tty/serial/ifx6x60.c index c42de7152eea..972c04d8c1a3 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);