Skip to content

Commit ddd9c81

Browse files
Harini Tgregkh
authored andcommitted
mailbox: zynqmp-ipi: Remove redundant mbox_controller_unregister() call
[ Upstream commit 341867f ] 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: 4981b82 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 6d67543 commit ddd9c81

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/mailbox/zynqmp-ipi-mailbox.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,6 @@ static void zynqmp_ipi_free_mboxes(struct zynqmp_ipi_pdata *pdata)
894894
for (; i >= 0; i--) {
895895
ipi_mbox = &pdata->ipi_mboxes[i];
896896
if (ipi_mbox->dev.parent) {
897-
mbox_controller_unregister(&ipi_mbox->mbox);
898897
if (device_is_registered(&ipi_mbox->dev))
899898
device_unregister(&ipi_mbox->dev);
900899
}

0 commit comments

Comments
 (0)