firmware: arm_scmi: Move scmi bus init and exit calls into the driver
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 7 Sep 2020 11:00:04 +0000 (12:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:51:30 +0000 (11:51 +0100)
commit82e815165ba0b7138022f95e8b22d15faceb0bd5
tree815eb67b7c861158f677551c1c403a0d5f6f7a50
parentbf27c9bf73592062c0e3e8ced509212dbbcd2672
firmware: arm_scmi: Move scmi bus init and exit calls into the driver

[ Upstream commit 5a2f0a0bdf201e2183904b6217f9c74774c961a8 ]

In preparation to enable building scmi as a single module, let us move
the scmi bus {de-,}initialisation call into the driver.

The main reason for this is to keep it simple instead of maintaining
it as separate modules and dealing with all possible initcall races
and deferred probe handling. We can move it as separate modules if
needed in future.

Link: https://lore.kernel.org/r/20200907195046.56615-3-sudeep.holla@arm.com
Tested-by: Cristian Marussi <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/bus.c
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/driver.c