firmware: arm_scmi: Move scmi protocols registration into the driver
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 7 Sep 2020 11:06:01 +0000 (12:06 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 14 Sep 2020 06:30:55 +0000 (07:30 +0100)
commit1eaf18e35a783a007ef03e09f1dfc3de81eace7c
tree7c8c04e5415919998d834cc0d3f1aca10304d1da
parent5a2f0a0bdf201e2183904b6217f9c74774c961a8
firmware: arm_scmi: Move scmi protocols registration into the driver

In preparation to enable building SCMI as a single module, let us move
the SCMI protocol registration call into the driver. This enables us
to also add unregistration of the SCMI protocols.

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-4-sudeep.holla@arm.com
Tested-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/clock.c
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/driver.c
drivers/firmware/arm_scmi/perf.c
drivers/firmware/arm_scmi/power.c
drivers/firmware/arm_scmi/reset.c
drivers/firmware/arm_scmi/sensors.c
drivers/firmware/arm_scmi/system.c