summaryrefslogtreecommitdiff
path: root/net/nfc/nci
diff options
context:
space:
mode:
authorVincent Cuissard <cuissard@marvell.com>2015-06-15 15:34:23 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2015-06-15 16:10:37 (GMT)
commitfb77ff4f43990dc91926ce2704036a547482544e (patch)
tree55aa9d1cf9bbd5cf1b96aa8d465df77b1879a3b5 /net/nfc/nci
parentd0dcad8bd32a34aa85bcbd5d2033658cb3964377 (diff)
downloadlinux-fb77ff4f43990dc91926ce2704036a547482544e.tar.xz
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')
-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;
}