tty: serial: men_z135_uart.c: Don't initialize port->lock

port->lock get's initialized in uart_add_one_port(), no need to do it
in men_z135_probe().

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Johannes Thumshirn 2015-08-06 09:16:38 +02:00 committed by Greg Kroah-Hartman
parent 8117e34740
commit 2b9a8508cb
1 changed files with 0 additions and 1 deletions

View File

@ -839,7 +839,6 @@ static int men_z135_probe(struct mcb_device *mdev,
uart->port.membase = NULL; uart->port.membase = NULL;
uart->mdev = mdev; uart->mdev = mdev;
spin_lock_init(&uart->port.lock);
spin_lock_init(&uart->lock); spin_lock_init(&uart->lock);
err = uart_add_one_port(&men_z135_driver, &uart->port); err = uart_add_one_port(&men_z135_driver, &uart->port);