Commit 0f36a3c
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>1 parent 5b3eca0 commit 0f36a3c
1 file changed
Lines changed: 3 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | 218 | | |
228 | 219 | | |
229 | 220 | | |
| |||
248 | 239 | | |
249 | 240 | | |
250 | 241 | | |
251 | | - | |
252 | | - | |
253 | | - | |
| 242 | + | |
| 243 | + | |
254 | 244 | | |
255 | | - | |
256 | | - | |
257 | 245 | | |
258 | 246 | | |
259 | 247 | | |
| |||
0 commit comments