Skip to content

Commit 4eaf21b

Browse files
Prike Liangalexdeucher
authored andcommitted
drm/amdgpu: not return error on the init_apu_flags
In some APU project we needn't always assign flags to identify each other, so we may not need return an error. Signed-off-by: Prike Liang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent b121862 commit 4eaf21b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ static int amdgpu_device_init_apu_flags(struct amdgpu_device *adev)
14501450
adev->apu_flags |= AMD_APU_IS_CYAN_SKILLFISH2;
14511451
break;
14521452
default:
1453-
return -EINVAL;
1453+
break;
14541454
}
14551455

14561456
return 0;
@@ -3498,9 +3498,7 @@ int amdgpu_device_init(struct amdgpu_device *adev,
34983498
mutex_init(&adev->psp.mutex);
34993499
mutex_init(&adev->notifier_lock);
35003500

3501-
r = amdgpu_device_init_apu_flags(adev);
3502-
if (r)
3503-
return r;
3501+
amdgpu_device_init_apu_flags(adev);
35043502

35053503
r = amdgpu_device_check_arguments(adev);
35063504
if (r)

0 commit comments

Comments
 (0)