1
0
Fork 0

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>
steinar/wifi_calib_4_9_kernel
Vincent Cuissard 2015-06-15 17:34:23 +02:00 committed by Samuel Ortiz
parent d0dcad8bd3
commit fb77ff4f43
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}