Commit df2ce45
drm/amdgpu: Convert to using devm_drm_dev_alloc() (v2)
Convert to using devm_drm_dev_alloc(),
as drm_dev_init() is going away.
v2: Remove drm_dev_put() since
a) devres doesn't do refcounting, see
Documentation/driver-api/driver-model/devres.rst,
Section 4, paragraph 1; and since
b) devres acts as garbage collector when
the DRM device's parent's devres "action" callback
is called to free the container device (amdgpu_device),
which embeds the DRM dev.
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200918132505.2316382-4-daniel.vetter@ffwll.ch1 parent cd01269 commit df2ce45
1 file changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1142 | 1142 | | |
1143 | 1143 | | |
1144 | 1144 | | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | 1152 | | |
1158 | 1153 | | |
1159 | 1154 | | |
1160 | 1155 | | |
1161 | 1156 | | |
1162 | 1157 | | |
1163 | | - | |
| 1158 | + | |
1164 | 1159 | | |
1165 | 1160 | | |
1166 | 1161 | | |
| |||
1188 | 1183 | | |
1189 | 1184 | | |
1190 | 1185 | | |
1191 | | - | |
1192 | | - | |
1193 | 1186 | | |
1194 | 1187 | | |
1195 | 1188 | | |
| |||
1206 | 1199 | | |
1207 | 1200 | | |
1208 | 1201 | | |
1209 | | - | |
1210 | 1202 | | |
1211 | 1203 | | |
1212 | 1204 | | |
| |||
0 commit comments