diff options
author | Cristian Marussi <cristian.marussi@arm.com> | 2021-03-16 13:49:02 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2021-03-30 17:35:16 +0200 |
commit | f5800e0bf6f9b7ff7dfa4db8b0681bd062eb16a4 (patch) | |
tree | b8f74aaac9f4698e36c7b6a66edaf9312a2c8f62 /drivers/firmware/arm_scmi/clock.c | |
parent | firmware: arm_scmi: Rename non devres notify_ops (diff) | |
download | linux-f5800e0bf6f9b7ff7dfa4db8b0681bd062eb16a4.tar.xz linux-f5800e0bf6f9b7ff7dfa4db8b0681bd062eb16a4.zip |
firmware: arm_scmi: Add protocol modularization support
Extend SCMI protocols accounting mechanism to address possible module
usage and add the support to possibly define new protocols as loadable
modules.
Keep the standard protocols built into the SCMI core.
Link: https://lore.kernel.org/r/20210316124903.35011-38-cristian.marussi@arm.com
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_scmi/clock.c')
-rw-r--r-- | drivers/firmware/arm_scmi/clock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/firmware/arm_scmi/clock.c b/drivers/firmware/arm_scmi/clock.c index 827cf25fc122..35b56c8ba0c0 100644 --- a/drivers/firmware/arm_scmi/clock.c +++ b/drivers/firmware/arm_scmi/clock.c @@ -5,6 +5,7 @@ * Copyright (C) 2018-2021 ARM Ltd. */ +#include <linux/module.h> #include <linux/sort.h> #include "common.h" @@ -367,6 +368,7 @@ static int scmi_clock_protocol_init(const struct scmi_protocol_handle *ph) static const struct scmi_protocol scmi_clock = { .id = SCMI_PROTOCOL_CLOCK, + .owner = THIS_MODULE, .instance_init = &scmi_clock_protocol_init, .ops = &clk_proto_ops, }; |