summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6655
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2015-09-12 19:10:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-14 08:50:45 -0700
commit41652a21b7c11322f4efa6daa43deb7935a052f9 (patch)
tree792b6827934d5d7bb0ce762745bfa5e686e78bf2 /drivers/staging/vt6655
parent2ef1571b13859ce56bf779ddaf3b7be44eacc5d7 (diff)
staging: vt6655: device_get_pci_info remove call to set master.
a call to PCI_COMMAND is used to set master. However, a call to pci_set_master earlier in function which does the same thing. So remove the calls and variable b. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655')
-rw-r--r--drivers/staging/vt6655/device_main.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index 17fa6aa30eae..edda8360e8ba 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -433,8 +433,6 @@ static void device_print_info(struct vnt_private *pDevice)
static bool device_get_pci_info(struct vnt_private *pDevice,
struct pci_dev *pcid)
{
- u8 b;
-
pci_set_master(pcid);
pDevice->memaddr = pci_resource_start(pcid, 0);
@@ -442,9 +440,6 @@ static bool device_get_pci_info(struct vnt_private *pDevice,
pDevice->pcid = pcid;
- pci_read_config_byte(pcid, PCI_COMMAND, &b);
- pci_write_config_byte(pcid, PCI_COMMAND, (b|PCI_COMMAND_MASTER));
-
return true;
}