Commit 8c8df9b
remoteproc: k3-r5: Add devm action to release tsp
Use a device lifecycle managed action to release tsp ti_sci_proc handle.
This helps prevent mistakes like releasing out of order in cleanup
functions and forgetting to release on error paths.
Signed-off-by: Beleswar Padhi <[email protected]>
Reviewed-by: Andrew Davis <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mathieu Poirier <[email protected]>1 parent de182d2 commit 8c8df9b
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1487 | 1487 | | |
1488 | 1488 | | |
1489 | 1489 | | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
1490 | 1497 | | |
1491 | 1498 | | |
1492 | 1499 | | |
| |||
1580 | 1587 | | |
1581 | 1588 | | |
1582 | 1589 | | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
1583 | 1594 | | |
1584 | 1595 | | |
1585 | 1596 | | |
| |||
1596 | 1607 | | |
1597 | 1608 | | |
1598 | 1609 | | |
1599 | | - | |
1600 | 1610 | | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
1606 | 1611 | | |
1607 | 1612 | | |
1608 | 1613 | | |
| |||
0 commit comments