Commit 41e452e
pinctrl: qcom: switch to devm_register_sys_off_handler()
Error-handling paths in msm_pinctrl_probe() don't call
a function required to unroll restart handler registration,
unregister_restart_handler(). Instead of adding calls to this function,
switch the msm pinctrl code into using devm_register_sys_off_handler().
Fixes: cf1fc18 ("pinctrl: qcom: use restart_notifier mechanism for ps_hold")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/20250513-pinctrl-msm-fix-v2-2-249999af0fc1@oss.qualcomm.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>1 parent fdf6cab commit 41e452e
1 file changed
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
| |||
1471 | 1469 | | |
1472 | 1470 | | |
1473 | 1471 | | |
1474 | | - | |
1475 | | - | |
| 1472 | + | |
1476 | 1473 | | |
1477 | | - | |
| 1474 | + | |
1478 | 1475 | | |
1479 | 1476 | | |
1480 | 1477 | | |
| |||
1485 | 1482 | | |
1486 | 1483 | | |
1487 | 1484 | | |
1488 | | - | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
1489 | 1490 | | |
1490 | 1491 | | |
1491 | 1492 | | |
| |||
1495 | 1496 | | |
1496 | 1497 | | |
1497 | 1498 | | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
1501 | 1504 | | |
1502 | 1505 | | |
1503 | 1506 | | |
| |||
1599 | 1602 | | |
1600 | 1603 | | |
1601 | 1604 | | |
1602 | | - | |
1603 | | - | |
1604 | 1605 | | |
1605 | 1606 | | |
1606 | 1607 | | |
| |||
0 commit comments