Commit 7bf0b49
committed
misc: rp1-pio: Defer for out-of-order probing
In the event that a client of the rp1-pio driver is probed before it,
return -EPROBE_DEFER from pio_open to allow it to be retried.
Otherwise, return an error code on error, not a NULL pointer, as that
is what clients are expecting.
See: raspberrypi#7211
Signed-off-by: Phil Elwell <phil@raspberrypi.com>1 parent 1298a98 commit 7bf0b49
1 file changed
+15
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
1038 | | - | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
1039 | 1041 | | |
1040 | 1042 | | |
1041 | 1043 | | |
| |||
1292 | 1294 | | |
1293 | 1295 | | |
1294 | 1296 | | |
1295 | | - | |
| 1297 | + | |
| 1298 | + | |
1296 | 1299 | | |
1297 | 1300 | | |
1298 | 1301 | | |
1299 | | - | |
| 1302 | + | |
1300 | 1303 | | |
1301 | 1304 | | |
1302 | | - | |
1303 | | - | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
1304 | 1309 | | |
1305 | 1310 | | |
1306 | 1311 | | |
| |||
1311 | 1316 | | |
1312 | 1317 | | |
1313 | 1318 | | |
1314 | | - | |
1315 | | - | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
1316 | 1323 | | |
1317 | 1324 | | |
1318 | 1325 | | |
| |||
1359 | 1366 | | |
1360 | 1367 | | |
1361 | 1368 | | |
| 1369 | + | |
1362 | 1370 | | |
1363 | 1371 | | |
1364 | 1372 | | |
| |||
0 commit comments