From 87995171ac35995c4b5f2801d81a5facd8e006d6 Mon Sep 17 00:00:00 2001 From: Ken Cox Date: Thu, 24 Apr 2014 13:57:11 -0500 Subject: [PATCH] Staging: unisys: virthba: add MODULE_DEVICE_TABLE Add x86_cpu_id struct and call to MODULE_DEVICE_TABLE so this module will be auto loaded on boot. Signed-off-by: Ken Cox Tested-by: Ken Cox Signed-off-by: Greg Kroah-Hartman --- drivers/staging/unisys/virthba/virthba.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/staging/unisys/virthba/virthba.c b/drivers/staging/unisys/virthba/virthba.c index 2755b4e9e769..a13e79e287f4 100644 --- a/drivers/staging/unisys/virthba/virthba.c +++ b/drivers/staging/unisys/virthba/virthba.c @@ -82,6 +82,14 @@ static int virthba_ioctl(struct scsi_device *dev, int cmd, void __user *arg); static int virthba_queue_command_lck(struct scsi_cmnd *scsicmd, void (*virthba_cmnd_done)(struct scsi_cmnd *)); +static const struct x86_cpu_id unisys_spar_ids[] = { + { X86_VENDOR_INTEL, 6, 62, X86_FEATURE_ANY }, + {} +}; + +/* Autoload */ +MODULE_DEVICE_TABLE(x86cpu, unisys_spar_ids); + #ifdef DEF_SCSI_QCMD DEF_SCSI_QCMD(virthba_queue_command) #else -- 2.20.1