summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-09-08 00:44:10 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-08 04:49:57 (GMT)
commit395d6d0f234d164f443f2bfd098091c39d60e6a5 (patch)
tree5cc764fdd9850c4b8766942a3d6a1deda8df8833
parentc1db9a3090c8418088a9e12454144299359884f5 (diff)
downloadlinux-fsl-qoriq-395d6d0f234d164f443f2bfd098091c39d60e6a5.tar.xz
staging: comedi: me4000: remove hw_revision from the private data
This value is read from the pci config space but it is never used. Just remove it. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/drivers/me4000.c7
-rw-r--r--drivers/staging/comedi/drivers/me4000.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/drivers/staging/comedi/drivers/me4000.c b/drivers/staging/comedi/drivers/me4000.c
index dfee15d..8394718 100644
--- a/drivers/staging/comedi/drivers/me4000.c
+++ b/drivers/staging/comedi/drivers/me4000.c
@@ -332,17 +332,10 @@ found:
static int init_board_info(struct comedi_device *dev, struct pci_dev *pci_dev_p)
{
- int result;
-
/* Init spin locks */
/* spin_lock_init(&info->preload_lock); */
/* spin_lock_init(&info->ai_ctrl_lock); */
- /* Get the hardware revision */
- result = pci_read_config_byte(pci_dev_p, 0x08, &info->hw_revision);
- if (result != PCIBIOS_SUCCESSFUL)
- return result;
-
/* Get the vendor id */
info->vendor_id = pci_dev_p->vendor;
diff --git a/drivers/staging/comedi/drivers/me4000.h b/drivers/staging/comedi/drivers/me4000.h
index 8aa05f8..afe91b1 100644
--- a/drivers/staging/comedi/drivers/me4000.h
+++ b/drivers/staging/comedi/drivers/me4000.h
@@ -252,7 +252,6 @@ struct me4000_info {
unsigned long timer_regbase; /* Base address of the timer circuit */
unsigned long program_regbase; /* Base address to set the program pin for the xilinx */
- unsigned char hw_revision; /* Hardware revision of the board */
unsigned short vendor_id; /* Meilhaus vendor id */
unsigned short device_id; /* Device id */