mailbox: pcc: Move bulk of PCCT parsing into pcc_mbox_probe
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 17 Sep 2021 13:33:56 +0000 (14:33 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 30 Oct 2021 03:46:38 +0000 (22:46 -0500)
commitce028702ddbc69743d958f9e20ad0306e4a428fe
tree75ef08616b3eac7ba83c479c6e22252b814f3f56
parentc45ded7e11352d7ba0bfe3cbf2625f96f94c7d92
mailbox: pcc: Move bulk of PCCT parsing into pcc_mbox_probe

Move the PCCT subspace parsing and allocation into pcc_mbox_probe so
that we can get rid of global PCC channel and mailbox controller data.
It also helps to make use of devm_* APIs for all the allocations.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/pcc.c