diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-03 14:07:38 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-19 14:00:56 -0400 |
commit | 0b77ca66a6ef1ab353b112bb548ff7492836ecc3 (patch) | |
tree | 692d2ab3b60a274a412486968073411fe3372fbb | |
parent | da9dbc0059fc5c6ae80dd8ecf85ae455a65d96de (diff) |
Staging: pata_rdc: remove DRIVER macros
They are not needed, and the version one was pointless now that the code
is merged into the tree.
Cc: Kevin Huang <Kevin.Huang@rdc.com.tw>
Cc: Tomy Wang <Tomy.Wang@rdc.com.tw>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/pata_rdc/pata_rdc.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/staging/pata_rdc/pata_rdc.c b/drivers/staging/pata_rdc/pata_rdc.c index ce15e4e5b176..f87863c547ec 100644 --- a/drivers/staging/pata_rdc/pata_rdc.c +++ b/drivers/staging/pata_rdc/pata_rdc.c | |||
@@ -10,15 +10,6 @@ | |||
10 | 10 | ||
11 | #include "pata_rdc.h" | 11 | #include "pata_rdc.h" |
12 | 12 | ||
13 | /* Driver Info. */ | ||
14 | #define DRIVER_NAME "pata_rdc" /* sata_rdc for SATA */ | ||
15 | #define DRIVER_VERSION "2.6.28" /* based on kernel version. */ | ||
16 | /* because each kernel main version has | ||
17 | * its libata, we follow kernel to | ||
18 | * determine the last libata version. | ||
19 | */ | ||
20 | |||
21 | |||
22 | static const struct pci_device_id rdc_pata_id_table[] = { | 13 | static const struct pci_device_id rdc_pata_id_table[] = { |
23 | { PCI_DEVICE(0x17F3, 0x1011), RDC_17F31011}, | 14 | { PCI_DEVICE(0x17F3, 0x1011), RDC_17F31011}, |
24 | { PCI_DEVICE(0x17F3, 0x1012), RDC_17F31012}, | 15 | { PCI_DEVICE(0x17F3, 0x1012), RDC_17F31012}, |
@@ -940,7 +931,7 @@ static void rdc_pata_set_dmamode(struct ata_port *ap, struct ata_device *adev) | |||
940 | 931 | ||
941 | /* pata host template */ | 932 | /* pata host template */ |
942 | static struct scsi_host_template rdc_pata_sht = { | 933 | static struct scsi_host_template rdc_pata_sht = { |
943 | ATA_BMDMA_SHT(DRIVER_NAME), | 934 | ATA_BMDMA_SHT(KBUILD_MODNAME), |
944 | }; | 935 | }; |
945 | 936 | ||
946 | static struct ata_port_operations rdc_pata_ops = { | 937 | static struct ata_port_operations rdc_pata_ops = { |
@@ -1000,7 +991,7 @@ static int __devinit rdc_init_one(struct pci_dev *pdev, | |||
1000 | 991 | ||
1001 | /* a pci driver */ | 992 | /* a pci driver */ |
1002 | static struct pci_driver rdc_pata_driver = { | 993 | static struct pci_driver rdc_pata_driver = { |
1003 | .name = DRIVER_NAME, | 994 | .name = KBUILD_MODNAME, |
1004 | .id_table = rdc_pata_id_table, | 995 | .id_table = rdc_pata_id_table, |
1005 | .probe = rdc_init_one, | 996 | .probe = rdc_init_one, |
1006 | .remove = ata_pci_remove_one, | 997 | .remove = ata_pci_remove_one, |
@@ -1025,4 +1016,3 @@ module_exit(pata_rdc_exit); | |||
1025 | 1016 | ||
1026 | MODULE_LICENSE("GPL"); | 1017 | MODULE_LICENSE("GPL"); |
1027 | MODULE_DESCRIPTION("RDC PCI IDE Driver"); | 1018 | MODULE_DESCRIPTION("RDC PCI IDE Driver"); |
1028 | MODULE_VERSION(DRIVER_VERSION); | ||