mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-07-21 03:35:25 -04:00
committed by
openharmony_ci
parent
75fc97c172
commit
b7f2b4bc24
@@ -62,7 +62,6 @@ int DevHostServiceClntInstallDriver(struct DevHostServiceClnt *hostClnt)
|
||||
}
|
||||
ret = devHostSvcIf->AddDevice(devHostSvcIf, deviceInfo);
|
||||
if (ret != HDF_SUCCESS) {
|
||||
deviceInfo->preload = DEVICE_PRELOAD_DISABLE;
|
||||
HDF_LOGE("Install %s driver failed, ret = %d", deviceInfo->svcName, ret);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ static int DevmgrServiceFindAndActiveDevice(const char *svcName, bool isLoad)
|
||||
HdfSListIteratorInit(&itDeviceInfo, hostClnt->deviceInfos);
|
||||
while (HdfSListIteratorHasNext(&itDeviceInfo)) {
|
||||
deviceInfo = (struct HdfDeviceInfo *)HdfSListIteratorNext(&itDeviceInfo);
|
||||
if (strcmp(deviceInfo->svcName, svcName) == 0) {
|
||||
if ((strcmp(deviceInfo->svcName, svcName) == 0) && (deviceInfo->preload == DEVICE_PRELOAD_DISABLE)) {
|
||||
return DevmgrServiceActiveDevice(hostClnt, deviceInfo, isLoad);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user