Staging: rar/sep: Don't use random VENDOR_ID macros but the proper names

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, September 16, 2009 - 9:11 am

Gitweb:     http://git.kernel.org/linus/4dd00845690a6744dbd879fa49584c49098823d8
Commit:     4dd00845690a6744dbd879fa49584c49098823d8
Parent:     137cf5b22f5fd38751265eae881749c311d27c75
Author:     Alan Cox <alan@linux.intel.com>
AuthorDate: Thu Aug 6 20:44:37 2009 +0100
Committer:  Greg Kroah-Hartman <gregkh@suse.de>
CommitDate: Tue Sep 15 12:02:12 2009 -0700

    Staging: rar/sep: Don't use random VENDOR_ID macros but the proper names
    
    Signed-off-by: Alan Cox <alan@linux.intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/staging/rar/rar_driver.c              |    8 +-------
 drivers/staging/sep/sep_ext_with_pci_driver.c |    4 +---
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/drivers/staging/rar/rar_driver.c b/drivers/staging/rar/rar_driver.c
index 0428bce..9805d74 100644
--- a/drivers/staging/rar/rar_driver.c
+++ b/drivers/staging/rar/rar_driver.c
@@ -17,12 +17,6 @@
 #include <linux/sched.h>
 #include "rar_driver.h"
 
-/* PCI vendor id for controler */
-#define VENDOR_ID 0x8086
-
-/* PCI device id for controler */
-#define DEVICE_ID 0x4110
-
 /* The following defines are for the IPC process to retrieve RAR in */
 
 /* === Lincroft Message Bus Interface === */
@@ -77,7 +71,7 @@ static void __exit rar_exit_handler(void);
 static int __devinit rar_probe(struct pci_dev *pdev, const struct pci_device_id *ent);
 
 static struct pci_device_id rar_pci_id_tbl[] = {
-	{ PCI_DEVICE(VENDOR_ID, DEVICE_ID) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4110) },
 	{ 0 }
 };
 
diff --git a/drivers/staging/sep/sep_ext_with_pci_driver.c b/drivers/staging/sep/sep_ext_with_pci_driver.c
index 49465f2..bac0dd0 100644
--- a/drivers/staging/sep/sep_ext_with_pci_driver.c
+++ b/drivers/staging/sep/sep_ext_with_pci_driver.c
@@ -91,8 +91,6 @@ static unsigned long CRYS_SEP_ROM[] = {
 
 irqreturn_t sep_inthandler(int irq , void* dev_id);
 
-/* NOTE - must be defined specific to the board */
-#define VENDOR_ID                             0x8086
 
 /* io memory (register area) */
 static unsigned long io_memory_start_physical_address;
@@ -134,7 +132,7 @@ static int __devinit sep_probe(struct pci_dev *pdev,
   const struct pci_device_id *ent);
 
 static struct pci_device_id sep_pci_id_tbl[] = {
-	{ PCI_DEVICE(VENDOR_ID, 0x080c) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x080c) },
 	{ 0 }
 };
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Staging: rar/sep: Don't use random VENDOR_ID macros but th ..., Linux Kernel Mailing ..., (Wed Sep 16, 9:11 am)