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>
This commit is contained in:
parent
d0dcad8bd3
commit
fb77ff4f43
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue