drivers: gnss: fix setting of baudrate

ubx_m10_init_pipe is calling modem_backend_uart_init which in turn is
memsetting the backend data structure and thus also overwrites the work
queue function pointer in it.

Remove call to ubx_m10_init_pipe as data structures are already set up.

Tested with u-blox NEO M9N.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
This commit is contained in:
Andreas Klinger 2024-07-13 17:06:12 +02:00 committed by Anas Nashif
parent 03f1dd413d
commit 8d8fe9d169

View file

@ -398,7 +398,6 @@ static int ubx_m10_set_uart_baudrate(const struct device *dev, uint32_t baudrate
}
reset_and_unlock:
ubx_m10_init_pipe(dev);
ret |= ubx_m10_resume(dev);
if (ret < 0) {
goto unlock;