Commit 43b6f38
serial: stm32: fix probe and remove order
Fix probe and remove order to register the port at the end of the probe and
to unregister the port at the beginning of the remove. This enforce
resource allocation and free occur at proper time.
Signed-off-by: Erwan Le Ray <erwan.leray@st.com>
Change-Id: I219cad0a31238404b84a79eab4eaaecd65fa04b4
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/155492
Reviewed-by: CITOOLS <smet-aci-reviews@lists.codex.cro.st.com>
Reviewed-by: CIBUILD <smet-aci-builds@lists.codex.cro.st.com>
Reviewed-by: Fabrice GASNIER <fabrice.gasnier@st.com>1 parent 859bda4 commit 43b6f38
1 file changed
+27
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1313 | 1313 | | |
1314 | 1314 | | |
1315 | 1315 | | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | 1316 | | |
1321 | 1317 | | |
1322 | 1318 | | |
| |||
1327 | 1323 | | |
1328 | 1324 | | |
1329 | 1325 | | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | 1332 | | |
1333 | 1333 | | |
1334 | 1334 | | |
1335 | 1335 | | |
1336 | 1336 | | |
1337 | | - | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1338 | 1358 | | |
1339 | 1359 | | |
1340 | 1360 | | |
| |||
1358 | 1378 | | |
1359 | 1379 | | |
1360 | 1380 | | |
| 1381 | + | |
| 1382 | + | |
1361 | 1383 | | |
1362 | 1384 | | |
1363 | 1385 | | |
| |||
1394 | 1416 | | |
1395 | 1417 | | |
1396 | 1418 | | |
1397 | | - | |
1398 | | - | |
1399 | 1419 | | |
1400 | 1420 | | |
1401 | 1421 | | |
| |||
0 commit comments