drivers: modem: receiver: correct device bind error type
Log possible uart device binding error and change the error type to a more correct one. Signed-off-by: Georgij Cernysiov <g.cernysiov@elco-automation.de>
This commit is contained in:
parent
52dc50dc6b
commit
23b64b0d35
1 changed files with 2 additions and 1 deletions
|
@ -174,7 +174,8 @@ int mdm_receiver_register(struct mdm_receiver_context *ctx,
|
|||
|
||||
ctx->uart_dev = device_get_binding(uart_dev_name);
|
||||
if (!ctx->uart_dev) {
|
||||
return -ENOENT;
|
||||
LOG_ERR("Binding failure for uart: %s", uart_dev_name);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
/* k_pipe is setup later in mdm_receiver_flush() */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue