diff options
| author | Mario Limonciello <[email protected]> | 2024-06-23 15:09:18 -0500 |
|---|---|---|
| committer | Mario Limonciello <[email protected]> | 2024-06-24 13:17:56 -0500 |
| commit | bc76f57574741cc8e7d04c53f199d8722ce09413 (patch) | |
| tree | 3cd4f901b127f53795acb5791487c5a652651211 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | e1a921f7fcd157ca898e453bbb56927ab39412e3 (diff) | |
cpufreq: amd-pstate: Don't create attributes when registration fails
If driver registration fails then immediately return the failure
instead of continuing to register attributes.
This fixes issues of falling back from amd-pstate to other drivers
when cpufreq init has failed for any reason.
Reported-by: [email protected]
Reviewed-by: Gautham R. Shenoy <[email protected]>
Reviewed-by: Perry Yuan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mario Limonciello <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions