staging: vt6655: device_get_pci_info remove unused pci_read_config_*
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 12 Sep 2015 18:10:34 +0000 (19:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2015 15:50:45 +0000 (08:50 -0700)
These values are read from pci but never used.

Removing variables byRevId, SubSystemID, SubVendorID and pci_cmd.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device.h
drivers/staging/vt6655/device_main.c

index f020bb1522e007c360dc573f4e866a23160bdc7f..271a719fe7dddd2875fd32d9fd4615959b1ecf2b 100644 (file)
@@ -231,10 +231,7 @@ struct vnt_private {
        u32                         memaddr;
        u32                         ioaddr;
 
-       unsigned char byRevId;
        unsigned char byRxMode;
-       unsigned short SubSystemID;
-       unsigned short SubVendorID;
 
        spinlock_t                  lock;
 
index ce2df3747faa021da04edc248875a677011dba8d..1e660ccf200f036b829ab6e03297413dc3449fd6 100644 (file)
@@ -230,9 +230,6 @@ static void device_init_registers(struct vnt_private *pDevice)
        pDevice->byTopOFDMBasicRate = RATE_24M;
        pDevice->byTopCCKBasicRate = RATE_1M;
 
-       /* Target to IF pin while programming to RF chip. */
-       pDevice->byRevId = 0;
-
        /* init MAC */
        MACvInitialize(pDevice->PortOffset);
 
@@ -436,15 +433,9 @@ static void device_print_info(struct vnt_private *pDevice)
 static bool device_get_pci_info(struct vnt_private *pDevice,
                                struct pci_dev *pcid)
 {
-       u16 pci_cmd;
        u8  b;
        unsigned int cis_addr;
 
-       pci_read_config_byte(pcid, PCI_REVISION_ID, &pDevice->byRevId);
-       pci_read_config_word(pcid, PCI_SUBSYSTEM_ID, &pDevice->SubSystemID);
-       pci_read_config_word(pcid, PCI_SUBSYSTEM_VENDOR_ID, &pDevice->SubVendorID);
-       pci_read_config_word(pcid, PCI_COMMAND, (u16 *)&(pci_cmd));
-
        pci_set_master(pcid);
 
        pDevice->memaddr = pci_resource_start(pcid, 0);