Commit 6159855
remoteproc: omap: Use devm_rproc_alloc() helper
Use the device lifecycle managed allocation function. This helps prevent
mistakes like freeing out of order in cleanup functions and forgetting to
free on error paths.
Signed-off-by: Andrew Davis <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mathieu Poirier <[email protected]>1 parent 2fa26ca commit 6159855
1 file changed
+8
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1305 | 1305 | | |
1306 | 1306 | | |
1307 | 1307 | | |
1308 | | - | |
1309 | | - | |
| 1308 | + | |
| 1309 | + | |
1310 | 1310 | | |
1311 | 1311 | | |
1312 | 1312 | | |
| |||
1318 | 1318 | | |
1319 | 1319 | | |
1320 | 1320 | | |
1321 | | - | |
| 1321 | + | |
1322 | 1322 | | |
1323 | 1323 | | |
1324 | 1324 | | |
1325 | | - | |
| 1325 | + | |
1326 | 1326 | | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | | - | |
| 1329 | + | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | 1332 | | |
| |||
1337 | 1337 | | |
1338 | 1338 | | |
1339 | 1339 | | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
1343 | | - | |
| 1340 | + | |
| 1341 | + | |
1344 | 1342 | | |
1345 | 1343 | | |
1346 | 1344 | | |
| |||
1359 | 1357 | | |
1360 | 1358 | | |
1361 | 1359 | | |
1362 | | - | |
1363 | | - | |
| 1360 | + | |
1364 | 1361 | | |
1365 | 1362 | | |
1366 | 1363 | | |
| |||
1369 | 1366 | | |
1370 | 1367 | | |
1371 | 1368 | | |
1372 | | - | |
1373 | 1369 | | |
1374 | 1370 | | |
1375 | 1371 | | |
| |||
0 commit comments