mailbox: omap: Use mbox_bind_client
authorElliot Berman <quic_eberman@quicinc.com>
Mon, 10 Apr 2023 16:16:53 +0000 (09:16 -0700)
committerJassi Brar <jaswinder.singh@linaro.org>
Tue, 18 Apr 2023 16:48:55 +0000 (11:48 -0500)
commitf11ff34d883a26f4f13c307aeb556f2b076a5066
tree8c8f0eb05df0abd0e2807cb66641ed2f0e4fb1e7
parent85a953806557dbf25d16e8c132b5b9b100d16496
mailbox: omap: Use mbox_bind_client

Use generic mbox_bind_client() to bind omap mailbox channel to a client.

mbox_bind_client is identical to the replaced lines, except that it:
 - Does the operation under con_mutex which prevents possible races in
   removal path
 - Sets TXDONE_BY_ACK if omap uses TXDONE_BY_POLL. omap uses
   TXDONE_BY_IRQ, so this check is not applicable.
 - Calls chan->mbox->ops->startup, if available. omap doesn't have, so
   this is not applicable.

Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/omap-mailbox.c