]> Gentwo Git Trees - linux/.git/commit
mailbox: zynqmp-ipi: Remove redundant mbox_controller_unregister() call
authorHarini T <harini.t@amd.com>
Mon, 29 Sep 2025 07:37:20 +0000 (13:07 +0530)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 6 Oct 2025 23:14:00 +0000 (18:14 -0500)
commit341867f730d3d3bb54491ee64e8b1a0c446656e7
treeff2b093599f83dd9b5b81114c2728c9354342d81
parent60d7416d8eb46ef2e71bf3dc13cd0c5eefc2ef89
mailbox: zynqmp-ipi: Remove redundant mbox_controller_unregister() call

The controller is registered using the device-managed function
'devm_mbox_controller_register()'. As documented in mailbox.c, this
ensures the devres framework automatically calls
mbox_controller_unregister() when device_unregister() is invoked, making
the explicit call unnecessary.

Remove redundant mbox_controller_unregister() call as
device_unregister() handles controller cleanup.

Fixes: 4981b82ba2ff ("mailbox: ZynqMP IPI mailbox controller")
Signed-off-by: Harini T <harini.t@amd.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/zynqmp-ipi-mailbox.c