diff options
| author | Andrew Morton <akpm@linux-foundation.org> | 2015-02-13 17:39:11 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-14 00:21:40 -0500 |
| commit | 0f989f749b51ec1fd94bb5a42f8ad10c8b9f73cb (patch) | |
| tree | 90336ee63fc49264afcd87d7743c49dfa41f060e | |
| parent | 4d5755b147665912c938504033d958f1115b68ff (diff) | |
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>
| -rw-r--r-- | Documentation/video4linux/v4l2-pci-skeleton.c | 2 | ||||
| -rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 1 | ||||
| -rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/Documentation/video4linux/v4l2-pci-skeleton.c b/Documentation/video4linux/v4l2-pci-skeleton.c index 006721e43b2a..7bd1b975bfd2 100644 --- a/Documentation/video4linux/v4l2-pci-skeleton.c +++ b/Documentation/video4linux/v4l2-pci-skeleton.c | |||
| @@ -42,7 +42,6 @@ | |||
| 42 | MODULE_DESCRIPTION("V4L2 PCI Skeleton Driver"); | 42 | MODULE_DESCRIPTION("V4L2 PCI Skeleton Driver"); |
| 43 | MODULE_AUTHOR("Hans Verkuil"); | 43 | MODULE_AUTHOR("Hans Verkuil"); |
| 44 | MODULE_LICENSE("GPL v2"); | 44 | MODULE_LICENSE("GPL v2"); |
| 45 | MODULE_DEVICE_TABLE(pci, skeleton_pci_tbl); | ||
| 46 | 45 | ||
| 47 | /** | 46 | /** |
| 48 | * struct skeleton - All internal data for one instance of device | 47 | * struct skeleton - All internal data for one instance of device |
| @@ -95,6 +94,7 @@ static const struct pci_device_id skeleton_pci_tbl[] = { | |||
| 95 | /* { PCI_DEVICE(PCI_VENDOR_ID_, PCI_DEVICE_ID_) }, */ | 94 | /* { PCI_DEVICE(PCI_VENDOR_ID_, PCI_DEVICE_ID_) }, */ |
| 96 | { 0, } | 95 | { 0, } |
| 97 | }; | 96 | }; |
| 97 | MODULE_DEVICE_TABLE(pci, skeleton_pci_tbl); | ||
| 98 | 98 | ||
| 99 | /* | 99 | /* |
| 100 | * HDTV: this structure has the capabilities of the HDTV receiver. | 100 | * HDTV: this structure has the capabilities of the HDTV receiver. |
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 932b93a14965..0a816859aca5 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c | |||
| @@ -26,7 +26,6 @@ | |||
| 26 | #include <net/vxlan.h> | 26 | #include <net/vxlan.h> |
| 27 | 27 | ||
| 28 | MODULE_VERSION(DRV_VER); | 28 | MODULE_VERSION(DRV_VER); |
| 29 | MODULE_DEVICE_TABLE(pci, be_dev_ids); | ||
| 30 | MODULE_DESCRIPTION(DRV_DESC " " DRV_VER); | 29 | MODULE_DESCRIPTION(DRV_DESC " " DRV_VER); |
| 31 | MODULE_AUTHOR("Emulex Corporation"); | 30 | MODULE_AUTHOR("Emulex Corporation"); |
| 32 | MODULE_LICENSE("GPL"); | 31 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index f3193406776c..96241b20fd2c 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
| @@ -48,7 +48,6 @@ static unsigned int be_iopoll_budget = 10; | |||
| 48 | static unsigned int be_max_phys_size = 64; | 48 | static unsigned int be_max_phys_size = 64; |
| 49 | static unsigned int enable_msix = 1; | 49 | static unsigned int enable_msix = 1; |
| 50 | 50 | ||
| 51 | MODULE_DEVICE_TABLE(pci, beiscsi_pci_id_table); | ||
| 52 | MODULE_DESCRIPTION(DRV_DESC " " BUILD_STR); | 51 | MODULE_DESCRIPTION(DRV_DESC " " BUILD_STR); |
| 53 | MODULE_VERSION(BUILD_STR); | 52 | MODULE_VERSION(BUILD_STR); |
| 54 | MODULE_AUTHOR("Emulex Corporation"); | 53 | MODULE_AUTHOR("Emulex Corporation"); |
