[PATCH 3/3] drivers, staging, unisys Add visornic module autoloading code
Prarit Bhargava
prarit at redhat.com
Thu Aug 6 18:28:36 UTC 2015
This patch adds an module alias and a MODULE_DEVICE_TABLE to autoload the
visornic driver when an appropriate device is created by the visorbus.
Signed-off-by: Prarit Bhargava <prarit at redhat.com>
---
drivers/staging/unisys/visornic/visornic_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c
index 7100744..9d31383 100644
--- a/drivers/staging/unisys/visornic/visornic_main.c
+++ b/drivers/staging/unisys/visornic/visornic_main.c
@@ -72,6 +72,7 @@ static struct visor_channeltype_descriptor visornic_channel_types[] = {
{ SPAR_VNIC_CHANNEL_PROTOCOL_UUID, "ultravnic" },
{ NULL_UUID_LE, NULL }
};
+MODULE_DEVICE_TABLE(visorbus, visornic_channel_types);
/* This is used to tell the visor bus driver which types of visor devices
* we support, and what functions to call when a visor device that we support
--
1.7.9.3
More information about the devel
mailing list