]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/amdgpu_i2c: Use devm_i2c_add_adapter instead of i2c_add_adapter
authorRodrigo Siqueira <siqueira@igalia.com>
Wed, 10 Sep 2025 17:39:35 +0000 (11:39 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Sep 2025 21:47:22 +0000 (17:47 -0400)
commit0f36a3c6af9e137344a2060cf2510db7ff9920c0
tree97af2bfcaf31d39c3d8dc9a7fcbb4963b83d8557
parent5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3
drm/amdgpu/amdgpu_i2c: Use devm_i2c_add_adapter instead of i2c_add_adapter

This commit replaces i2c_add_adapter() with devm_i2c_add_adapter() and
removes part of the cleanup logic since the new function handles the i2c
removal.

Signed-off-by: Rodrigo Siqueira <siqueira@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c