mailbox: omap: Use mbox_controller channel list directly
authorAndrew Davis <afd@ti.com>
Wed, 10 Apr 2024 13:59:39 +0000 (08:59 -0500)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 20 May 2024 03:29:44 +0000 (22:29 -0500)
commit34123b1a4add58b3af80e31a6df33f213c0afcaa
tree3652649a3cb338b1103c82379c49dbb83c7b8372
parent2a0fca3949b5835442333d03ee63a48e038cceea
mailbox: omap: Use mbox_controller channel list directly

The driver stores a list of omap_mbox structs so it can later use it to
lookup the mailbox names in of_xlate. This same information is already
available in the mbox_controller passed into of_xlate. Simply use that
data and remove the extra allocation and storage of the omap_mbox list.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/omap-mailbox.c