Skip to content

Commit 0f989f7

Browse files
akpm00torvalds
authored andcommitted
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>
1 parent 4d5755b commit 0f989f7

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

Documentation/video4linux/v4l2-pci-skeleton.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
MODULE_DESCRIPTION("V4L2 PCI Skeleton Driver");
4343
MODULE_AUTHOR("Hans Verkuil");
4444
MODULE_LICENSE("GPL v2");
45-
MODULE_DEVICE_TABLE(pci, skeleton_pci_tbl);
4645

4746
/**
4847
* struct skeleton - All internal data for one instance of device
@@ -95,6 +94,7 @@ static const struct pci_device_id skeleton_pci_tbl[] = {
9594
/* { PCI_DEVICE(PCI_VENDOR_ID_, PCI_DEVICE_ID_) }, */
9695
{ 0, }
9796
};
97+
MODULE_DEVICE_TABLE(pci, skeleton_pci_tbl);
9898

9999
/*
100100
* HDTV: this structure has the capabilities of the HDTV receiver.

drivers/net/ethernet/emulex/benet/be_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include <net/vxlan.h>
2727

2828
MODULE_VERSION(DRV_VER);
29-
MODULE_DEVICE_TABLE(pci, be_dev_ids);
3029
MODULE_DESCRIPTION(DRV_DESC " " DRV_VER);
3130
MODULE_AUTHOR("Emulex Corporation");
3231
MODULE_LICENSE("GPL");

drivers/scsi/be2iscsi/be_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ static unsigned int be_iopoll_budget = 10;
4848
static unsigned int be_max_phys_size = 64;
4949
static unsigned int enable_msix = 1;
5050

51-
MODULE_DEVICE_TABLE(pci, beiscsi_pci_id_table);
5251
MODULE_DESCRIPTION(DRV_DESC " " BUILD_STR);
5352
MODULE_VERSION(BUILD_STR);
5453
MODULE_AUTHOR("Emulex Corporation");

0 commit comments

Comments
 (0)