summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/arm_scmi/power.c
diff options
context:
space:
mode:
authorCristian Marussi <cristian.marussi@arm.com>2021-03-16 13:49:02 +0100
committerSudeep Holla <sudeep.holla@arm.com>2021-03-30 17:35:16 +0200
commitf5800e0bf6f9b7ff7dfa4db8b0681bd062eb16a4 (patch)
treeb8f74aaac9f4698e36c7b6a66edaf9312a2c8f62 /drivers/firmware/arm_scmi/power.c
parentfirmware: arm_scmi: Rename non devres notify_ops (diff)
downloadlinux-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/power.c')
-rw-r--r--drivers/firmware/arm_scmi/power.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/firmware/arm_scmi/power.c b/drivers/firmware/arm_scmi/power.c
index e0987f0a8fb2..ad2ab080f344 100644
--- a/drivers/firmware/arm_scmi/power.c
+++ b/drivers/firmware/arm_scmi/power.c
@@ -7,6 +7,7 @@
#define pr_fmt(fmt) "SCMI Notifications POWER - " fmt
+#include <linux/module.h>
#include <linux/scmi_protocol.h>
#include "common.h"
@@ -312,6 +313,7 @@ static int scmi_power_protocol_init(const struct scmi_protocol_handle *ph)
static const struct scmi_protocol scmi_power = {
.id = SCMI_PROTOCOL_POWER,
+ .owner = THIS_MODULE,
.instance_init = &scmi_power_protocol_init,
.ops = &power_proto_ops,
.events = &power_protocol_events,