Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MODULE_DEVICE_TABLE: fix some callsites

The patch "module: fix types of device tables aliases" newly requires that
invocations of

MODULE_DEVICE_TABLE(type, name);

come *after* the definition of `name'. That is reasonable, but some
drivers weren't doing this. Fix them.

Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Andrey Ryabinin <a.ryabinin@samsung.com>
Cc: David Miller <davem@davemloft.net>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andrew Morton and committed by
Linus Torvalds
0f989f74 4d5755b1

+1 -3
+1 -1
Documentation/video4linux/v4l2-pci-skeleton.c
··· 42 42 MODULE_DESCRIPTION("V4L2 PCI Skeleton Driver"); 43 43 MODULE_AUTHOR("Hans Verkuil"); 44 44 MODULE_LICENSE("GPL v2"); 45 - MODULE_DEVICE_TABLE(pci, skeleton_pci_tbl); 46 45 47 46 /** 48 47 * struct skeleton - All internal data for one instance of device ··· 94 95 /* { PCI_DEVICE(PCI_VENDOR_ID_, PCI_DEVICE_ID_) }, */ 95 96 { 0, } 96 97 }; 98 + MODULE_DEVICE_TABLE(pci, skeleton_pci_tbl); 97 99 98 100 /* 99 101 * HDTV: this structure has the capabilities of the HDTV receiver.
-1
drivers/net/ethernet/emulex/benet/be_main.c
··· 26 26 #include <net/vxlan.h> 27 27 28 28 MODULE_VERSION(DRV_VER); 29 - MODULE_DEVICE_TABLE(pci, be_dev_ids); 30 29 MODULE_DESCRIPTION(DRV_DESC " " DRV_VER); 31 30 MODULE_AUTHOR("Emulex Corporation"); 32 31 MODULE_LICENSE("GPL");
-1
drivers/scsi/be2iscsi/be_main.c
··· 48 48 static unsigned int be_max_phys_size = 64; 49 49 static unsigned int enable_msix = 1; 50 50 51 - MODULE_DEVICE_TABLE(pci, beiscsi_pci_id_table); 52 51 MODULE_DESCRIPTION(DRV_DESC " " BUILD_STR); 53 52 MODULE_VERSION(BUILD_STR); 54 53 MODULE_AUTHOR("Emulex Corporation");