lkml.org 
[lkml]   [2015]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/2] tty: serial: men_z135_uart.c: Don't initialize port->lock
    Date
    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>
    Cc: Peter Hurley <peter@hurleysoftware.com>
    ---
    drivers/tty/serial/men_z135_uart.c | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/drivers/tty/serial/men_z135_uart.c b/drivers/tty/serial/men_z135_uart.c
    index 5a41b8fb..b90e7b3 100644
    --- a/drivers/tty/serial/men_z135_uart.c
    +++ b/drivers/tty/serial/men_z135_uart.c
    @@ -839,7 +839,6 @@ static int men_z135_probe(struct mcb_device *mdev,
    uart->port.membase = NULL;
    uart->mdev = mdev;

    - spin_lock_init(&uart->port.lock);
    spin_lock_init(&uart->lock);

    err = uart_add_one_port(&men_z135_driver, &uart->port);
    --
    2.4.6


    \
     
     \ /
      Last update: 2015-08-06 09:21    [W:6.109 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site