提交 fb77ff4f 编写于 作者: V Vincent Cuissard 提交者: Samuel Ortiz

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: NVincent Cuissard <cuissard@marvell.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 d0dcad8b
...@@ -417,7 +417,7 @@ int nci_uart_register(struct nci_uart *nu) ...@@ -417,7 +417,7 @@ int nci_uart_register(struct nci_uart *nu)
nu->ops.recv = nci_uart_default_recv; nu->ops.recv = nci_uart_default_recv;
/* Add this driver in the driver list */ /* 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); pr_err("driver %d is already registered\n", nu->driver);
return -EBUSY; return -EBUSY;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册