summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorVincent Cuissard <cuissard@marvell.com>2015-06-15 17:34:23 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2015-06-15 18:10:37 +0200
commitfb77ff4f43990dc91926ce2704036a547482544e (patch)
tree55aa9d1cf9bbd5cf1b96aa8d465df77b1879a3b5 /net
parentd0dcad8bd32a34aa85bcbd5d2033658cb3964377 (diff)
downloadop-kernel-dev-fb77ff4f43990dc91926ce2704036a547482544e.zip
op-kernel-dev-fb77ff4f43990dc91926ce2704036a547482544e.tar.gz
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')
-rw-r--r--net/nfc/nci/uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/nci/uart.c b/net/nfc/nci/uart.c
index 2c48810..21d8875 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;
}
OpenPOWER on IntegriCloud