diff options
author | Cristian Marussi <cristian.marussi@arm.com> | 2024-03-25 23:46:19 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2024-03-26 14:33:33 +0300 |
commit | 264a2c52062802ea6052011015cb3d919dc14d9f (patch) | |
tree | b8c4fe2771351af384cd6f5a76bcc7896ca83d07 /include/linux/scmi_protocol.h | |
parent | 5076ab66db1671a5cd9ecfb857d1949e36a33142 (diff) | |
download | linux-264a2c52062802ea6052011015cb3d919dc14d9f.tar.xz |
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 <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240325204620.1437237-5-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'include/linux/scmi_protocol.h')
-rw-r--r-- | include/linux/scmi_protocol.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h index b807141acc14..a3addb07e00a 100644 --- a/include/linux/scmi_protocol.h +++ b/include/linux/scmi_protocol.h @@ -783,8 +783,6 @@ struct scmi_notify_ops { const u32 *src_id, struct notifier_block *nb); int (*devm_event_notifier_unregister)(struct scmi_device *sdev, - u8 proto_id, u8 evt_id, - const u32 *src_id, struct notifier_block *nb); int (*event_notifier_register)(const struct scmi_handle *handle, u8 proto_id, u8 evt_id, |