Loading drivers/media/platform/msm/vidc/q6_hfi.c +15 −4 Original line number Diff line number Diff line Loading @@ -280,8 +280,12 @@ static int q6_hfi_init_resources(struct q6_hfi_device *device, device->res = res; rc = q6_hfi_register_iommu_domains(device); if (rc) dprintk(VIDC_ERR, "Failed to register iommu domains: %d\n", rc); if (rc) { if (rc != -EPROBE_DEFER) { dprintk(VIDC_ERR, "Failed to register iommu domains: %d\n", rc); } } return rc; } Loading Loading @@ -356,6 +360,7 @@ static void *q6_hfi_get_device(u32 device_id, rc = q6_hfi_init_resources(device, res); if (rc) { if (rc != -EPROBE_DEFER) dprintk(VIDC_ERR, "Failed to init resources: %d\n", rc); goto err_fail_init_res; } Loading @@ -363,7 +368,7 @@ static void *q6_hfi_get_device(u32 device_id, err_fail_init_res: q6_hfi_delete_device(device); return NULL; return ERR_PTR(rc); } void q6_hfi_delete_device(void *device) Loading Loading @@ -1384,6 +1389,12 @@ int q6_hfi_initialize(struct hfi_device *hdev, u32 device_id, } hdev->hfi_device_data = q6_hfi_get_device(device_id, res, callback); if (IS_ERR_OR_NULL(hdev->hfi_device_data)) { rc = PTR_ERR(hdev->hfi_device_data); rc = !rc ? -EINVAL : rc; goto err_hfi_init; } q6_init_hfi_callbacks(hdev); err_hfi_init: Loading drivers/media/platform/msm/vidc/venus_hfi.c +2 −1 Original line number Diff line number Diff line Loading @@ -3602,7 +3602,7 @@ static void *venus_hfi_add_device(u32 device_id, struct venus_hfi_device *hdevice = NULL; int rc = 0; if (device_id || !res || !callback) { if (!res || !callback) { dprintk(VIDC_ERR, "Invalid Paramters"); return NULL; } Loading Loading @@ -3766,6 +3766,7 @@ int venus_hfi_initialize(struct hfi_device *hdev, u32 device_id, if (IS_ERR_OR_NULL(hdev->hfi_device_data)) { rc = PTR_ERR(hdev->hfi_device_data); rc = !rc ? -EINVAL : rc; goto err_venus_hfi_init; } Loading Loading
drivers/media/platform/msm/vidc/q6_hfi.c +15 −4 Original line number Diff line number Diff line Loading @@ -280,8 +280,12 @@ static int q6_hfi_init_resources(struct q6_hfi_device *device, device->res = res; rc = q6_hfi_register_iommu_domains(device); if (rc) dprintk(VIDC_ERR, "Failed to register iommu domains: %d\n", rc); if (rc) { if (rc != -EPROBE_DEFER) { dprintk(VIDC_ERR, "Failed to register iommu domains: %d\n", rc); } } return rc; } Loading Loading @@ -356,6 +360,7 @@ static void *q6_hfi_get_device(u32 device_id, rc = q6_hfi_init_resources(device, res); if (rc) { if (rc != -EPROBE_DEFER) dprintk(VIDC_ERR, "Failed to init resources: %d\n", rc); goto err_fail_init_res; } Loading @@ -363,7 +368,7 @@ static void *q6_hfi_get_device(u32 device_id, err_fail_init_res: q6_hfi_delete_device(device); return NULL; return ERR_PTR(rc); } void q6_hfi_delete_device(void *device) Loading Loading @@ -1384,6 +1389,12 @@ int q6_hfi_initialize(struct hfi_device *hdev, u32 device_id, } hdev->hfi_device_data = q6_hfi_get_device(device_id, res, callback); if (IS_ERR_OR_NULL(hdev->hfi_device_data)) { rc = PTR_ERR(hdev->hfi_device_data); rc = !rc ? -EINVAL : rc; goto err_hfi_init; } q6_init_hfi_callbacks(hdev); err_hfi_init: Loading
drivers/media/platform/msm/vidc/venus_hfi.c +2 −1 Original line number Diff line number Diff line Loading @@ -3602,7 +3602,7 @@ static void *venus_hfi_add_device(u32 device_id, struct venus_hfi_device *hdevice = NULL; int rc = 0; if (device_id || !res || !callback) { if (!res || !callback) { dprintk(VIDC_ERR, "Invalid Paramters"); return NULL; } Loading Loading @@ -3766,6 +3766,7 @@ int venus_hfi_initialize(struct hfi_device *hdev, u32 device_id, if (IS_ERR_OR_NULL(hdev->hfi_device_data)) { rc = PTR_ERR(hdev->hfi_device_data); rc = !rc ? -EINVAL : rc; goto err_venus_hfi_init; } Loading