mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
d0dcad8bd3
commit
fb77ff4f43
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue