fix resources linklist init error

This commit is contained in:
Liu_Weichao
2021-04-29 15:06:43 +08:00
parent 88686fe544
commit 4ff72f080c
13 changed files with 25 additions and 25 deletions
+3 -3
View File
@@ -55,11 +55,11 @@ int SdioDeviceRegister(struct SdioHardwareDevice *sdio_device, const char *devic
NULL_PARAM_CHECK(device_name);
x_err_t ret = EOK;
static x_bool DevLinkFlag = RET_FALSE;
static x_bool dev_link_flag = RET_FALSE;
if (DevLinkFlag) {
if (!dev_link_flag) {
SdioDeviceLinkInit();
DevLinkFlag = RET_TRUE;
dev_link_flag = RET_TRUE;
}
if (DEV_INSTALL != sdio_device->haldev.dev_state) {
+3 -3
View File
@@ -54,11 +54,11 @@ int SdioDriverRegister(struct Driver *driver)
NULL_PARAM_CHECK(driver);
x_err_t ret = EOK;
static x_bool DriverLinkFlag = RET_FALSE;
static x_bool driver_link_flag = RET_FALSE;
if (!DriverLinkFlag) {
if (!driver_link_flag) {
SdioDrvLinkInit();
DriverLinkFlag = RET_TRUE;
driver_link_flag = RET_TRUE;
}
DoubleLinkListInsertNodeAfter(&sdiodrv_linklist, &(driver->driver_link));