Commit a409e91
dmaengine: idxd: Refactor remove call with idxd_cleanup() helper
The idxd_cleanup() helper cleans up perfmon, interrupts, internals and
so on. Refactor remove call with the idxd_cleanup() helper to avoid code
duplication. Note, this also fixes the missing put_device() for idxd
groups, enginces and wqs.
Fixes: bfe1d56 ("dmaengine: idxd: Init and probe for Intel data accelerators")
Cc: stable@vger.kernel.org
Suggested-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com>
Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20250404120217.48772-10-xueshuai@linux.alibaba.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>1 parent d5449ff commit a409e91
1 file changed
+2
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1308 | 1308 | | |
1309 | 1309 | | |
1310 | 1310 | | |
1311 | | - | |
1312 | 1311 | | |
1313 | 1312 | | |
1314 | 1313 | | |
| |||
1321 | 1320 | | |
1322 | 1321 | | |
1323 | 1322 | | |
1324 | | - | |
1325 | | - | |
1326 | 1323 | | |
1327 | | - | |
1328 | | - | |
1329 | | - | |
1330 | | - | |
| 1324 | + | |
1331 | 1325 | | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | 1326 | | |
1338 | 1327 | | |
| 1328 | + | |
1339 | 1329 | | |
1340 | 1330 | | |
1341 | 1331 | | |
| |||
0 commit comments