Commit a7bd00f
dmaengine: idxd: Refactor remove call with idxd_cleanup() helper
commit a409e91 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 7a6c43d commit a7bd00f
1 file changed
Lines changed: 2 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1309 | 1309 | | |
1310 | 1310 | | |
1311 | 1311 | | |
1312 | | - | |
1313 | 1312 | | |
1314 | 1313 | | |
1315 | 1314 | | |
| |||
1322 | 1321 | | |
1323 | 1322 | | |
1324 | 1323 | | |
1325 | | - | |
1326 | | - | |
1327 | 1324 | | |
1328 | | - | |
1329 | | - | |
1330 | | - | |
1331 | | - | |
| 1325 | + | |
1332 | 1326 | | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | 1327 | | |
1339 | 1328 | | |
| 1329 | + | |
1340 | 1330 | | |
1341 | 1331 | | |
1342 | 1332 | | |
| |||
0 commit comments