summaryrefslogtreecommitdiff
path: root/rust/helpers/bitops.c
diff options
context:
space:
mode:
authorRodrigo Siqueira <siqueira@igalia.com>2025-09-10 11:39:42 -0600
committerAlex Deucher <alexander.deucher@amd.com>2025-09-16 17:47:40 -0400
commitc32da00612baa106d7cfea707411b1510239e66a (patch)
tree446a207cf8d60ac1be9c01143a54bef8131af81c /rust/helpers/bitops.c
parent4970883abd31e4da100a3bf73a74b41517fc552e (diff)
drm/amd/pm: Use devm_i2c_add_adapter() in the V13_0_6 smu
The I2C init for V13_0_6 uses i2c_add_adapter() and i2c_del_adapter(), this commit replaces the use of these two functions with devm_i2c_add_adapter(). Notice that V13_0_6 init initializes multiple I2C buses in a loop; if something goes wrong, the previous adapters are removed, and the amdgpu load is interrupted. Since I2C init is required for the correct load of amdgpu, it is safe to rely on devm_i2c_add_adapter() to handle any previously initialized I2C adapter. Signed-off-by: Rodrigo Siqueira <siqueira@igalia.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'rust/helpers/bitops.c')
0 files changed, 0 insertions, 0 deletions