[drivers][spi] Fixed an issue that caused spi bus deadlock in the spi configuration

This commit is contained in:
Yuqiang Wang 2024-10-10 09:32:17 +08:00 committed by GitHub
parent 65234401f3
commit 9b31631df1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ rt_err_t rt_spi_bus_configure(struct rt_spi_device *device)
/* RT_EBUSY is not an error condition and /* RT_EBUSY is not an error condition and
* the configuration will take effect once the device has the bus * the configuration will take effect once the device has the bus
*/ */
return -RT_EBUSY; result = -RT_EBUSY;
} }
/* release lock */ /* release lock */