megaraid: remove unnecessary #defines
authorJon Mason <jdmason@kudzu.us>
Tue, 10 Jul 2012 22:31:28 +0000 (15:31 -0700)
committerJiri Kosina <jkosina@suse.cz>
Sat, 1 Sep 2012 15:42:43 +0000 (08:42 -0700)
Remove PCI vendor and subvendor IDs, as they are already defined in
pci_ids.h.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/scsi/megaraid.c
drivers/scsi/megaraid.h

index 4d39a9ffc0813a32882e5c6469ccbdfce2eee206..f066ec483beafbdec3619b552b8e270aec7d7bcb 100644 (file)
@@ -305,12 +305,11 @@ mega_query_adapter(adapter_t *adapter)
 
        adapter->host->sg_tablesize = adapter->sglen;
 
-
        /* use HP firmware and bios version encoding
           Note: fw_version[0|1] and bios_version[0|1] were originally shifted
           right 8 bits making them zero. This 0 value was hardcoded to fix
           sparse warnings. */
-       if (adapter->product_info.subsysvid == HP_SUBSYS_VID) {
+       if (adapter->product_info.subsysvid == PCI_VENDOR_ID_HP) {
                sprintf (adapter->fw_version, "%c%d%d.%d%d",
                         adapter->product_info.fw_version[2],
                         0,
@@ -4716,7 +4715,7 @@ megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
         * support, since this firmware cannot handle 64 bit
         * addressing
         */
-       if ((subsysvid == HP_SUBSYS_VID) &&
+       if ((subsysvid == PCI_VENDOR_ID_HP) &&
            ((subsysid == 0x60E7) || (subsysid == 0x60E8))) {
                /*
                 * which firmware
index 9a7897f8ca4375a7d4e9786b6c7b2daabe3aab86..4fb2adf6b80ddf4028c0ce70107d20e3cdb6a328 100644 (file)
 
 #define MAX_DEV_TYPE   32
 
-#ifndef PCI_VENDOR_ID_LSI_LOGIC
-#define PCI_VENDOR_ID_LSI_LOGIC                0x1000
-#endif
-
-#ifndef PCI_VENDOR_ID_AMI
-#define PCI_VENDOR_ID_AMI              0x101E
-#endif
-
-#ifndef PCI_VENDOR_ID_DELL
-#define PCI_VENDOR_ID_DELL             0x1028
-#endif
-
-#ifndef PCI_VENDOR_ID_INTEL
-#define PCI_VENDOR_ID_INTEL            0x8086
-#endif
-
-#ifndef PCI_DEVICE_ID_AMI_MEGARAID
-#define PCI_DEVICE_ID_AMI_MEGARAID     0x9010
-#endif
-
-#ifndef PCI_DEVICE_ID_AMI_MEGARAID2
-#define PCI_DEVICE_ID_AMI_MEGARAID2    0x9060
-#endif
-
-#ifndef PCI_DEVICE_ID_AMI_MEGARAID3
-#define PCI_DEVICE_ID_AMI_MEGARAID3    0x1960
-#endif
-
 #define PCI_DEVICE_ID_DISCOVERY                0x000E
 #define PCI_DEVICE_ID_PERC4_DI         0x000F
 #define PCI_DEVICE_ID_PERC4_QC_VERDE   0x0407
 
-/* Sub-System Vendor IDs */
-#define        AMI_SUBSYS_VID                  0x101E
-#define DELL_SUBSYS_VID                        0x1028
-#define        HP_SUBSYS_VID                   0x103C
-#define LSI_SUBSYS_VID                 0x1000
-#define INTEL_SUBSYS_VID               0x8086
-
 #define HBA_SIGNATURE                  0x3344
 #define HBA_SIGNATURE_471              0xCCCC
 #define HBA_SIGNATURE_64BIT            0x0299