Commit 264a2c5
firmware: arm_scmi: Simplify scmi_devm_notifier_unregister
Unregistering SCMI notifications using the managed devres interface can be
done providing as a reference simply the previously successfully registered
notification block since it could have been registered only on one kernel
notification_chain: drop any reference to SCMI protocol, events and
sources.
Devres internal helpers can search for the provided notification block
reference and, once found, the associated devres object will already
provide the above SCMI references for the event.
Signed-off-by: Cristian Marussi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sudeep Holla <[email protected]>1 parent 5076ab6 commit 264a2c5
File tree
2 files changed
+4
-28
lines changed- drivers/firmware/arm_scmi
- include/linux
2 files changed
+4
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1513 | 1513 | | |
1514 | 1514 | | |
1515 | 1515 | | |
1516 | | - | |
| 1516 | + | |
1517 | 1517 | | |
1518 | | - | |
| 1518 | + | |
1519 | 1519 | | |
1520 | 1520 | | |
1521 | | - | |
1522 | | - | |
1523 | | - | |
1524 | | - | |
1525 | | - | |
1526 | | - | |
| 1521 | + | |
1527 | 1522 | | |
1528 | 1523 | | |
1529 | 1524 | | |
1530 | 1525 | | |
1531 | 1526 | | |
1532 | 1527 | | |
1533 | 1528 | | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
1538 | 1529 | | |
1539 | 1530 | | |
1540 | 1531 | | |
| |||
1544 | 1535 | | |
1545 | 1536 | | |
1546 | 1537 | | |
1547 | | - | |
1548 | | - | |
1549 | 1538 | | |
1550 | 1539 | | |
1551 | 1540 | | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
1555 | | - | |
1556 | | - | |
1557 | | - | |
1558 | | - | |
1559 | | - | |
1560 | | - | |
1561 | | - | |
1562 | | - | |
1563 | 1541 | | |
1564 | 1542 | | |
1565 | | - | |
| 1543 | + | |
1566 | 1544 | | |
1567 | 1545 | | |
1568 | 1546 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
786 | | - | |
787 | | - | |
788 | 786 | | |
789 | 787 | | |
790 | 788 | | |
| |||
0 commit comments