firmware: arm_ffa: Simplify ffa_partitions_cleanup()
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 8 Jan 2024 12:34:14 +0000 (12:34 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 22 Jan 2024 10:07:12 +0000 (10:07 +0000)
commitad9d9a107a4308e75ec34890547447c7095b4781
treee617d59bd7f0dafe05f1e29a3950285096d9650a
parentc00d9738fd5fce15dc5494d05b7599dce23e8146
firmware: arm_ffa: Simplify ffa_partitions_cleanup()

On cleanup iterate the XArrays with xa_for_each() and remove the existent
entries with xa_erase(), finally destroy the XArray itself.

Remove partition_count field from drv_info since no more used anywhwere.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240108-ffa_fixes_6-8-v1-4-75bf7035bc50@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c