lkml.org 
[lkml]   [2009]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[63/90] sunsu: Pass true ignore_line to console match when RSC or LOM console.
    2.6.31-stable review patch.  If anyone has any objections, please let us know.

    ------------------


    From: David S. Miller <davem@davemloft.net>

    [ Upstream commit 1917d17b903955b8b2903626a2e01d071a5d0ec9 ]

    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---
    drivers/serial/sunsu.c | 8 +++++++-
    1 file changed, 7 insertions(+), 1 deletion(-)

    --- a/drivers/serial/sunsu.c
    +++ b/drivers/serial/sunsu.c
    @@ -1409,6 +1409,7 @@ static int __devinit su_probe(struct of_
    struct uart_sunsu_port *up;
    struct resource *rp;
    enum su_type type;
    + bool ignore_line;
    int err;

    type = su_get_type(dp);
    @@ -1467,9 +1468,14 @@ static int __devinit su_probe(struct of_

    up->port.ops = &sunsu_pops;

    + ignore_line = false;
    + if (!strcmp(dp->name, "rsc-console") ||
    + !strcmp(dp->name, "lom-console"))
    + ignore_line = true;
    +
    sunserial_console_match(SUNSU_CONSOLE(), dp,
    &sunsu_reg, up->port.line,
    - false);
    + ignore_line);
    err = uart_add_one_port(&sunsu_reg, &up->port);
    if (err)
    goto out_unmap;



    \
     
     \ /
      Last update: 2009-12-17 02:35    [W:0.020 / U:31.320 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site