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>
This commit is contained in:
Rodrigo Siqueira 2025-09-10 11:39:37 -06:00 • committed by Alex Deucher
commit f4dfc4447d