We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97720be commit 9dfbae0Copy full SHA for 9dfbae0
drivers/wifi/eswifi/eswifi_bus_uart.c
@@ -219,9 +219,9 @@ int eswifi_uart_init(struct eswifi_dev *eswifi)
219
{
220
struct eswifi_uart_data *uart = &eswifi_uart0; /* Static instance */
221
222
- uart->dev = device_get_binding(DT_INST_BUS_LABEL(0));
223
- if (!uart->dev) {
224
- LOG_ERR("Failed to initialize uart driver");
+ uart->dev = DEVICE_DT_GET(DT_INST_BUS(0));
+ if (!device_is_ready(uart->dev)) {
+ LOG_ERR("Bus device is not ready");
225
return -ENODEV;
226
}
227
0 commit comments