[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1294272313-15899-2-git-send-email-russ.gorby@intel.com>
Date: Wed, 5 Jan 2011 16:05:07 -0800
From: Russ Gorby <russ.gorby@...el.com>
To: Greg@...r.kernel.org, Kroah-Hartman@...r.kernel.org,
<gregkh@...e.de>, Vasiliy@...r.kernel.org, Kulikov@...r.kernel.org,
<segoon@...nwall.com>, Alan@...r.kernel.org, Cox@...r.kernel.org,
<alan@...ux.intel.com>, Russ@...r.kernel.org,
Gorby@...r.kernel.org, <richardx.r.gorby@...el.com>,
linux-kernel@...r.kernel.org
Cc: suhail.ahmed@...el.com
Subject: [PATCH 1/7] 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@...el.com>
---
drivers/serial/ifx6x60.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/serial/ifx6x60.c b/drivers/serial/ifx6x60.c
index ab93763..1eb44f9 100644
--- a/drivers/serial/ifx6x60.c
+++ b/drivers/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);
--
1.7.2.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists