firmware: arm_scmi: Fix devres allocation device in virtio transport
authorCristian Marussi <cristian.marussi@arm.com>
Fri, 28 Oct 2022 14:08:30 +0000 (15:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 17:15:36 +0000 (18:15 +0100)
commit7398435e616ded7a65d901db61de8470e8c3b050
treeb16a8d23602ff3a24dac75ef1f8be875b9dc810d
parent3653cdc21b9e8a1f559e6c7f5a60bf5b8bc190e2
firmware: arm_scmi: Fix devres allocation device in virtio transport

[ Upstream commit 5ffc1c4cb896f8d2cf10309422da3633a616d60f ]

SCMI virtio transport device managed allocations must use the main
platform device in devres operations instead of the channel devices.

Cc: Peter Hilber <peter.hilber@opensynergy.com>
Fixes: 46abe13b5e3d ("firmware: arm_scmi: Add virtio transport")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20221028140833.280091-5-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/arm_scmi/virtio.c