Commit 5b3eca0
drm/amd/display: Use devm_i2c_add_adapter to simplify i2c cleanup logic
This commit replaces the utilization of i2c_add/del_adapter() with
devm_i2c_add_adapter() to reduce the amount of boilerplate. Using
devm_i2c_add_adapter() has the advantage of removing the manual
manipulation of the I2C adapter.
Suggested-by: Robert Beckett <bob.beckett@collabora.com>
Signed-off-by: Rodrigo Siqueira <siqueira@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 70db83e commit 5b3eca0
1 file changed
Lines changed: 2 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2945 | 2945 | | |
2946 | 2946 | | |
2947 | 2947 | | |
2948 | | - | |
| 2948 | + | |
2949 | 2949 | | |
2950 | 2950 | | |
2951 | 2951 | | |
| |||
2957 | 2957 | | |
2958 | 2958 | | |
2959 | 2959 | | |
2960 | | - | |
2961 | | - | |
2962 | | - | |
2963 | | - | |
2964 | | - | |
2965 | | - | |
2966 | | - | |
2967 | | - | |
2968 | | - | |
2969 | | - | |
2970 | | - | |
2971 | 2960 | | |
2972 | 2961 | | |
2973 | 2962 | | |
| |||
3018 | 3007 | | |
3019 | 3008 | | |
3020 | 3009 | | |
3021 | | - | |
3022 | | - | |
3023 | 3010 | | |
3024 | 3011 | | |
3025 | 3012 | | |
| |||
7373 | 7360 | | |
7374 | 7361 | | |
7375 | 7362 | | |
7376 | | - | |
7377 | | - | |
7378 | | - | |
7379 | | - | |
7380 | 7363 | | |
7381 | 7364 | | |
7382 | 7365 | | |
| |||
8734 | 8717 | | |
8735 | 8718 | | |
8736 | 8719 | | |
8737 | | - | |
| 8720 | + | |
8738 | 8721 | | |
8739 | 8722 | | |
8740 | 8723 | | |
| |||
0 commit comments