Commit 972361e
remoteproc: k3-r5: Add devm action to release reserved memory
Use a device lifecycle managed action to release reserved memory. 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 dbb9c37 commit 972361e
1 file changed
+13
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
955 | 955 | | |
956 | 956 | | |
957 | 957 | | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
958 | 965 | | |
959 | 966 | | |
960 | 967 | | |
| |||
985 | 992 | | |
986 | 993 | | |
987 | 994 | | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
988 | 999 | | |
989 | 1000 | | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
| 1001 | + | |
| 1002 | + | |
994 | 1003 | | |
995 | 1004 | | |
996 | 1005 | | |
| |||
1041 | 1050 | | |
1042 | 1051 | | |
1043 | 1052 | | |
1044 | | - | |
1045 | | - | |
1046 | 1053 | | |
1047 | 1054 | | |
1048 | 1055 | | |
| |||
1053 | 1060 | | |
1054 | 1061 | | |
1055 | 1062 | | |
1056 | | - | |
1057 | | - | |
1058 | 1063 | | |
1059 | 1064 | | |
1060 | 1065 | | |
| |||
0 commit comments