]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
greybus: uart-gb: a few minor bug fixes
authorAlex Elder <elder@linaro.org>
Mon, 18 Aug 2014 23:25:12 +0000 (18:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Aug 2014 10:10:43 +0000 (05:10 -0500)
commitcaaa8a838dd098fc72f393b871c3f882bfac9e77
tree5c3947a86dbc3948964c42d439ad3faa6f5123ef
parentff5f0b38228fbf10ff58a530a8a462b3b90cc7ef
greybus: uart-gb: a few minor bug fixes

Here are a few small bug fixes in uart-gb.c:
    - In wait_serial_change():
        - Return -EINVAL if *none* of the relevant flags are set in
          the "arg" parameter.
        - Balance the spin_lock_irq() with an unlock call (not
          another lock).
        - Rearrange a nested if structure (not a bug fix).
    - In tty_gb_probe():
        - Reset the greybus_device driver data in case of error.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/uart-gb.c