From: Vincent Cuissard Date: Mon, 15 Jun 2015 15:34:23 +0000 (+0200) Subject: NFC: nci: fix mistake in uart generic driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fb77ff4f43990dc91926ce2704036a547482544e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Samuel Ortiz --- 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; }