]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: Use devm_i2c_add_adapter() in the i2c init
authorRodrigo Siqueira <siqueira@igalia.com>
Wed, 10 Sep 2025 17:39:37 +0000 (11:39 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Sep 2025 21:47:26 +0000 (17:47 -0400)
commitf4dfc4447d57c1d03ded394797018ac463449d2c
tree6d3e0231700158a4632c7a8c0beebd982248b811
parent63137c7c8cd1aee788067b9d3782dce6ea21c0df
drm/amd/pm: Use devm_i2c_add_adapter() in the i2c init

Instead of using i2c_add_adapter() and i2c_del_adapter(), replace them
with devm_i2c_add_adapter() to simplify the i2c logic.

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