diff options
author | Vincent Cuissard <cuissard@marvell.com> | 2015-06-15 17:34:23 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-06-15 18:10:37 +0200 |
commit | fb77ff4f43990dc91926ce2704036a547482544e (patch) | |
tree | 55aa9d1cf9bbd5cf1b96aa8d465df77b1879a3b5 /net/nfc/nci/uart.c | |
parent | d0dcad8bd32a34aa85bcbd5d2033658cb3964377 (diff) | |
download | linux-fb77ff4f43990dc91926ce2704036a547482544e.tar.bz2 |
NFC: nci: fix mistake in uart generic driver
It was not possible to register a UART driver due
to a bad condition.
Signed-off-by: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/nci/uart.c')
-rw-r--r-- | net/nfc/nci/uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/nci/uart.c b/net/nfc/nci/uart.c index 2c48810af5bb..21d8875673a4 100644 --- a/net/nfc/nci/uart.c +++ b/net/nfc/nci/uart.c @@ -417,7 +417,7 @@ int nci_uart_register(struct nci_uart *nu) nu->ops.recv = nci_uart_default_recv; /* Add this driver in the driver list */ - if (!nci_uart_drivers[nu->driver]) { + if (nci_uart_drivers[nu->driver]) { pr_err("driver %d is already registered\n", nu->driver); return -EBUSY; } |