summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-06-03 11:07:38 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-19 11:00:56 -0700
commit0b77ca66a6ef1ab353b112bb548ff7492836ecc3 (patch)
tree692d2ab3b60a274a412486968073411fe3372fbb /drivers
parentda9dbc0059fc5c6ae80dd8ecf85ae455a65d96de (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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/pata_rdc/pata_rdc.c14
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 @@
#include "pata_rdc.h"
-/* Driver Info. */
-#define DRIVER_NAME "pata_rdc" /* sata_rdc for SATA */
-#define DRIVER_VERSION "2.6.28" /* based on kernel version. */
- /* because each kernel main version has
- * its libata, we follow kernel to
- * determine the last libata version.
- */
-
-
static const struct pci_device_id rdc_pata_id_table[] = {
{ PCI_DEVICE(0x17F3, 0x1011), RDC_17F31011},
{ PCI_DEVICE(0x17F3, 0x1012), RDC_17F31012},
@@ -940,7 +931,7 @@ static void rdc_pata_set_dmamode(struct ata_port *ap, struct ata_device *adev)
/* pata host template */
static struct scsi_host_template rdc_pata_sht = {
- ATA_BMDMA_SHT(DRIVER_NAME),
+ ATA_BMDMA_SHT(KBUILD_MODNAME),
};
static struct ata_port_operations rdc_pata_ops = {
@@ -1000,7 +991,7 @@ static int __devinit rdc_init_one(struct pci_dev *pdev,
/* a pci driver */
static struct pci_driver rdc_pata_driver = {
- .name = DRIVER_NAME,
+ .name = KBUILD_MODNAME,
.id_table = rdc_pata_id_table,
.probe = rdc_init_one,
.remove = ata_pci_remove_one,
@@ -1025,4 +1016,3 @@ module_exit(pata_rdc_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("RDC PCI IDE Driver");
-MODULE_VERSION(DRIVER_VERSION);