mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
firmware: arm_scmi: Add aliases to transport modules
SCMI transports when built as loadable modules should be loaded by the subsystem they plug into, based on the related subsystem specific aliases. Add, where missing, the MODULE_DEVICE_TABLE() directives needed to generate the aliases required to enable autoloading for SCMI transports. Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> Message-Id: <20241209164957.1801886-4-cristian.marussi@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
This commit is contained in:
parent
d4cc8912cb
commit
3f3f0e53e9
|
|
@ -378,6 +378,7 @@ static const struct of_device_id scmi_of_match[] = {
|
|||
{ .compatible = "arm,scmi" },
|
||||
{ /* Sentinel */ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, scmi_of_match);
|
||||
|
||||
DEFINE_SCMI_TRANSPORT_DRIVER(scmi_mailbox, scmi_mailbox_driver,
|
||||
scmi_mailbox_desc, scmi_of_match, core);
|
||||
|
|
|
|||
|
|
@ -301,6 +301,7 @@ static const struct of_device_id scmi_of_match[] = {
|
|||
{ .compatible = "qcom,scmi-smc" },
|
||||
{ /* Sentinel */ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, scmi_of_match);
|
||||
|
||||
DEFINE_SCMI_TRANSPORT_DRIVER(scmi_smc, scmi_smc_driver, scmi_smc_desc,
|
||||
scmi_of_match, core);
|
||||
|
|
|
|||
|
|
@ -921,6 +921,7 @@ static const struct virtio_device_id id_table[] = {
|
|||
{ VIRTIO_ID_SCMI, VIRTIO_DEV_ANY_ID },
|
||||
{ 0 }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(virtio, id_table);
|
||||
|
||||
static struct virtio_driver virtio_scmi_driver = {
|
||||
.driver.name = "scmi-virtio",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user