diff --git a/core/host/src/devhost_service.c b/core/host/src/devhost_service.c index 52cc539081bb28ff7d31fe3c9c31e2c6b19955b6..15ebde7a0a45e948b9764d889bec4dca97c04ac4 100644 --- a/core/host/src/devhost_service.c +++ b/core/host/src/devhost_service.c @@ -125,7 +125,7 @@ int DevHostServiceDelDevice(struct IDevHostService *inst, const struct HdfDevice return HDF_FAILURE; } - device = DevHostServiceGetDevice(hostService, deviceInfo->deviceId); + device = DevHostServiceFindDevice(hostService, deviceInfo->deviceId); if (device == NULL) { HDF_LOGW("failed to del device, device is not exist"); return HDF_SUCCESS;