summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-scmi.c
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2019-11-07 11:39:45 +0000
committerSudeep Holla <sudeep.holla@arm.com>2019-12-24 11:36:26 +0000
commit2deb267b26b5441e0e77f999ea084bf02c5c0ef1 (patch)
treeb4e9de5ea9dc5c56530408aba15587213304664b /drivers/clk/clk-scmi.c
parentb55b06b79445574fa031158fe2ae2946cde0d1b7 (diff)
downloadlinux-2deb267b26b5441e0e77f999ea084bf02c5c0ef1.tar.gz
linux-2deb267b26b5441e0e77f999ea084bf02c5c0ef1.tar.bz2
linux-2deb267b26b5441e0e77f999ea084bf02c5c0ef1.zip
firmware: arm_scmi: Skip protocol initialisation for additional devices
The scmi bus now supports adding multiple devices per protocol, and since scmi_protocol_init is called for each scmi device created, we must avoid allocating protocol private data and initialising the protocol itself if it is already initialised. In order to achieve the same, we can simple replace the idr pointer from protocol initialisation function to a dummy function. Suggested-by: Cristian Marussi <cristian.marussi@arm.com> Reviewed-by: Cristian Marussi <cristian.marussi@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/clk/clk-scmi.c')
0 files changed, 0 insertions, 0 deletions