summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/device_main.c
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2015-09-12 19:10:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-14 08:50:45 -0700
commit7a95f96108efc94cd79d46245a70c3b5bf9c0840 (patch)
tree1442de500a4633f18e2c9b9cdacb7624f4d2fb62 /drivers/staging/vt6655/device_main.c
parentf31798266f23edf85d32b38f7b2a755684d399ef (diff)
downloadop-kernel-dev-7a95f96108efc94cd79d46245a70c3b5bf9c0840.zip
op-kernel-dev-7a95f96108efc94cd79d46245a70c3b5bf9c0840.tar.gz
staging: vt6655: device_get_pci_info remove unused pci_read_config_*
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>
Diffstat (limited to 'drivers/staging/vt6655/device_main.c')
-rw-r--r--drivers/staging/vt6655/device_main.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index ce2df37..1e660cc 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -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);
OpenPOWER on IntegriCloud