diff --git a/platform/spi/spi_bes.c b/platform/spi/spi_bes.c index 5a83d949b669c1464941a2aa8b66eedb9f68fd30..c946e859e727d564fb92116067c57bc5551deb4a 100755 --- a/platform/spi/spi_bes.c +++ b/platform/spi/spi_bes.c @@ -455,6 +455,7 @@ static int32_t GetSpiDeviceResource(struct SpiDevice *spiDevice, const char *dev if (result != HDF_SUCCESS) { HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); } + spiDevice->spiId = resource->num; return result; } #else